// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
struct__objcFastEnumerationState;typedefstruct objc_class *Class;typedefstruct objc_object {Class isa;}*id;@interfaceMyList@end@implementationMyList- (unsignedint)countByEnumeratingWithState:(struct __objcFastEnumerationState *)stateobjects:(id *)itemscount:(unsignedint)stackcount{return0;}@end@interfaceMyList(BasicTest)- (void)compilerTestAgainst;@end@implementationMyList(BasicTest)- (void)compilerTestAgainst{int i=0;for(int* elem in elem)// expected-error {{selector element type 'int *' is not a valid object}} \
expected-error {{the type 'int *' is not a pointer to a fast-enumerable object}}
++i;for(i in elem)// expected-error {{use of undeclared identifier 'elem'}} \
expected-error {{selector element type 'int' is not a valid object}}
++i;for(id se in i)// expected-error {{the type 'int' is not a pointer to a fast-enumerable object}}
++i;}@end