Sign in
llvm
/
llvm-project
/
51a86e75ddf3eac3057c901bbe5e750dea62c7c1
/
.
/
clang
/
test
/
Sema
/
builtin-counted-by-ref.cpp
blob: b9ec9c908dcaa66fca0baa40762128ea61b49f09 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -x c++ -fsyntax-only -verify %s
struct
fam_struct
{
int
x
;
char
count
;
int
array
[]
__attribute__
((
counted_by
(
count
)));
// expected-warning {{'counted_by' attribute ignored}}
};