blob: 76251abf33fcdaa10057d89d7b6fc4dea50640ce [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'}}
Chris Lattner13fd7e52008-06-21 21:44:18 +000020 for (el in @"foo") // expected-error {{use of undeclared identifier 'el'}}
Fariborz Jahanian20552d22008-01-10 20:33:58 +000021 { LOOP(); }
22}
23@end
24