1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 struct __objcFastEnumerationState;
4 @implementation MyList // expected-warning {{cannot find interface declaration for 'MyList'}}
5 - (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount
14 @implementation MyList (BasicTest)
15 - (void)compilerTestAgainst {
23 static int test7(id keys) {
24 // FIXME: would be nice to suppress the secondary diagnostics.
25 for (id key; in keys) ; // expected-error {{use of undeclared identifier 'in'}} \
26 // expected-error {{expected ';' in 'for' statement specifier}} \
27 // expected-warning {{expression result unused}}