2011-01-05 09:10:06 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
|
2007-12-28 05:46:27 +08:00
|
|
|
|
2008-09-26 12:48:09 +08:00
|
|
|
// FIXME: This is a horrible error message here. Fix.
|
|
|
|
int @"s" = 5; // expected-error {{prefix attribute must be}}
|
2009-01-09 12:34:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
// rdar://6480479
|
2011-12-06 17:25:23 +08:00
|
|
|
@interface A // expected-note {{class started here}}
|
|
|
|
}; // expected-error {{missing '@end'}} \
|
2012-01-17 09:04:27 +08:00
|
|
|
// expected-error {{extraneous closing brace ('}')}} \
|
2011-01-05 09:10:06 +08:00
|
|
|
// expected-warning{{extra ';' outside of a function}}
|
2009-01-09 12:34:13 +08:00
|
|
|
|
2010-04-11 16:28:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// PR6811
|
|
|
|
// 'super' isn't an expression, it is a magic context-sensitive keyword.
|
|
|
|
@interface A2 {
|
|
|
|
id isa;
|
|
|
|
}
|
|
|
|
- (void)a;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface B2 : A2 @end
|
|
|
|
@implementation B2
|
|
|
|
- (void)a
|
|
|
|
{
|
|
|
|
[(super) a]; // expected-error {{use of undeclared identifier 'super'}}
|
|
|
|
}
|
|
|
|
@end
|
2011-01-05 09:10:06 +08:00
|
|
|
|
|
|
|
@compatibility_alias A3 A2;
|