blob: 893e31294ad67f8e042cbefb27d889c494557272 [file] [log] [blame]
Argyrios Kyrtzidisd99990d2013-05-03 23:20:27 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Argyrios Kyrtzidis57f8da52013-03-14 22:56:43 +00002
3@interface B
4@property int x;
5@end
6
7@interface S : B
8@end
9
10// Spell-checking 'undefined' is ok.
Argyrios Kyrtzidisd99990d2013-05-03 23:20:27 +000011undefined var; // expected-error {{unknown type name}}
Argyrios Kyrtzidis57f8da52013-03-14 22:56:43 +000012
13typedef int super1;
14@implementation S
15-(void)foo {
16 // Spell-checking 'super' is not ok.
17 super.x = 0;
18 self.x = 0;
19}
20@end