xref: /llvm-project/clang/test/Parser/c2x-attribute-keywords.m (revision 8e7f073eb42c92aa7a2b651ca314d7fcebf296e3)
1// RUN: %clang_cc1 -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -verify %s
2
3enum __arm_inout("za") E1 : int; // expected-error {{'__arm_inout' only applies to non-K&R-style functions}}
4
5@interface Base
6@end
7
8@interface S : Base
9- (void) bar;
10@end
11
12@interface T : Base
13- (S *) foo;
14@end
15
16
17void f(T *t) {
18  __arm_inout("za")[[t foo] bar]; // expected-error {{'__arm_inout' cannot be applied to a statement}}
19}
20