blob: 693f12e2ffe9053e1827537e7da4f0226a30740f [file] [log] [blame]
Fariborz Jahanian20552d22008-01-10 20:33:58 +00001// RUN: clang -fsyntax-only -verify %s
2
3ce MyList // expected-error {{expected '=', ',', ';', 'asm', or '__attribute__' after declarator}}
4@end
5
6
7@implementation MyList
8- (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount
9{
10 return 0;
11}
12@end
13
14
15int LOOP();
16
17@implementation MyList (BasicTest) // expected-error {{cannot find interface declaration for 'MyList'}}
18- (void)compilerTestAgainst {
19MyList * el; // expected-error {{use of undeclared identifier 'MyList'}}
20 for (el in @"foo") // expected-error {{use of undeclared identifier 'el'}} \
21 // expected-error {{cannot find interface declaration for 'NSConstantString'}}
22 { LOOP(); }
23}
24@end
25