// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
typedefstruct objc_class *Class;struct__objcFastEnumerationState;typedefstruct objc_object {Class isa;}*id;@protocolP@end@interfaceMyList@end@implementationMyList- (unsignedint)countByEnumeratingWithState:(struct __objcFastEnumerationState *)stateobjects:(id *)itemscount:(unsignedint)stackcount{return0;}@end@interfaceMyList(BasicTest)- (void)compilerTestAgainst;@end@implementationMyList(BasicTest)- (void)compilerTestAgainst{static i;// expected-warning {{type specifier missing, defaults to 'int'}}
for(id el, elem in self)// expected-error {{only one element declaration is allowed}}
++i;for(id el in self)++i;
MyList<P>***p;for(p in self)// expected-error {{selector element type 'MyList<P> ***' is not a valid object}}
++i;}@end