brintos

brintos / llvm-project-archived public Read only

0
0
Text · 429 B · 575c88f Raw
20 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +sme -verify %s2 3enum __arm_inout("za") E1 : int; // expected-error {{'__arm_inout' only applies to non-K&R-style functions}}4 5@interface Base6@end7 8@interface S : Base9- (void) bar;10@end11 12@interface T : Base13- (S *) foo;14@end15 16 17void f(T *t) {18  __arm_inout("za")[[t foo] bar]; // expected-error {{'__arm_inout' cannot be applied to a statement}}19}20