brintos

brintos / llvm-project-archived public Read only

0
0
Text · 675 B · 696847b Raw
31 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s2 3// FIXME: This is a horrible error message here. Fix.4int @"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// PR681115// 'super' isn't an expression, it is a magic context-sensitive keyword.16@interface A2 {17  id isa;18}19- (void)a;20@end21 22@interface B2 : A2 @end23@implementation B224- (void)a25{26  [(super) a];  // expected-error {{use of undeclared identifier 'super'}}27}28@end29 30@compatibility_alias A3 A2;31