]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/Parser/builtin_classify_type.c
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
11 static int ary
[__builtin_classify_type(a
)];
12 static int ary2
[(__builtin_classify_type
)(a
)]; // expected-error{{variable length array declaration can not have 'static' storage duration}}
13 static int ary3
[(*__builtin_classify_type
)(a
)]; // expected-error{{builtin functions must be directly called}}
17 result
= __builtin_classify_type(a
);
18 result
= __builtin_classify_type(b
);
19 result
= __builtin_classify_type(d
);
20 result
= __builtin_classify_type(s
);