blob: b6671d1cf94772a7673019983f104f3de2b1fa73 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Chris Lattner1e571442007-12-27 21:46:27 +00002
Daniel Dunbar246e70f2008-09-26 04:48:09 +00003// FIXME: This is a horrible error message here. Fix.
4int @"s" = 5; // expected-error {{prefix attribute must be}}
Chris Lattner1fd80112009-01-09 04:34:13 +00005
6
7// rdar://6480479
8@interface A
9}; // expected-error {{missing @end}} expected-error {{expected external declaration}}
10
Chris Lattnereb483eb2010-04-11 08:28:14 +000011
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