1 // RUN: clang -fsyntax-only -verify %s
3 typedef struct objc_class *Class;
4 typedef struct objc_object {
12 @implementation MyList
13 - (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount
19 @interface MyList (BasicTest)
20 - (void)compilerTestAgainst;
23 @implementation MyList (BasicTest)
24 - (void)compilerTestAgainst {
27 for (int * elem in elem) // expected-error {{selector element type ('int *') is not a valid object}} \
28 expected-error {{collection expression type ('int *') is not a valid object}}
30 for (i in elem) // expected-error {{use of undeclared identifier 'elem'}} \
31 expected-error {{selector element type ('int') is not a valid object}}
33 for (id se in i) // expected-error {{collection expression type ('int') is not a valid object}}