Debian Codegraph @

clang/test/Parser/c2x-attribute-keywords.m

raw
1 // RUN: %clang_cc1 -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -verify %s
2
3 enum __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
17 void f(T *t) {
18 __arm_inout("za")[[t foo] bar]; // expected-error {{'__arm_inout' cannot be applied to a statement}}
19 }