xref: /llvm-project/clang/test/Sema/builtin-counted-by-ref.cpp (revision 7475156d49406785a974b1205d11fe3de9c1553e)
1 // RUN: %clang_cc1 -x c++ -fsyntax-only -verify %s
2 
3 struct fam_struct {
4   int x;
5   char count;
6   int array[] __attribute__((counted_by(count))); // expected-warning {{'counted_by' attribute ignored}}
7 };
8 
9