Debian Codegraph @

clang/test/Parser/objc-quirks.m

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
2
3 // FIXME: This is a horrible error message here. Fix.
4 int @"s" = 5; // expected-error {{prefix attribute must be}}
5
6 @interface A // expected-note {{class started here}}
7 }; // expected-error {{missing '@end'}} \
8 // expected-error {{extraneous closing brace ('}')}} \
9 // expected-warning{{extra ';' outside of a function}}
10
11
12
13
14 // PR6811
15 // 'super' isn't an expression, it is a magic context-sensitive keyword.
16 @interface A2 {
17 id isa;
18 }
19 - (void)a;
20 @end
21
22 @interface B2 : A2 @end
23 @implementation B2
24 - (void)a
25 {
26 [(super) a]; // expected-error {{use of undeclared identifier 'super'}}
27 }
28 @end
29
30 @compatibility_alias A3 A2;