1 /* Syntax check for the new foreach statement.
2 Use of declaration in loop-header without requiring c99 mode. */
3 /* { dg-do compile } */
5 typedef struct objc_class *Class;
7 typedef struct objc_object {
15 @implementation MyList
16 - (unsigned int)countByEnumeratingWithState:(struct __objcFastEnumerationState *)state objects:(id *)items count:(unsigned int)stackcount
20 - (void)addObject:object {
25 @interface MyList (BasicTest)
26 - (void)compilerTestAgainst;
31 @implementation MyList (BasicTest)
32 - (void)compilerTestAgainst {
35 for (id elem in (self))