blob: e6e3ccf12d1a5cde80bd94e3f94d6ac408d99e74 [file] [log] [blame]
// RUN: clang-cc -fsyntax-only -verify %s
ce MyList // expected-error {{invalid token after top level declarator}}
@end
@implementation MyList
- (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount
{
return 0;
}
@end
int LOOP();
@implementation MyList (BasicTest) // expected-error {{cannot find interface declaration for 'MyList'}}
- (void)compilerTestAgainst {
MyList * el; // expected-error {{use of undeclared identifier 'MyList'}}
for (el in @"foo") // expected-error {{use of undeclared identifier 'el'}}
{ LOOP(); }
}
@end
static int test7(id keys) {
for (id key; in keys) ; // expected-error {{use of undeclared identifier 'in'}}
}