Sign in
llvm
/
llvm-project.git
/
refs/heads/users/wlei-llvm/spr/tmp-add-func-map-section-header
/
.
/
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}}
};