1 /* Syntax check for the new foreach statement. */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
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))