add opensuse toolchain support, patch by Ismail Donmez!
[clang/stm8.git] / test / Rewriter / rewrite-foreach-2.m
blob5ed15a34ac07cfa47b91a580fdbda8d8254f2d01
1 // RUN: %clang_cc1 -rewrite-objc %s -o -
3 @protocol P @end
5 @interface MyList
6 @end
7     
8 @implementation MyList
9 - (unsigned int)countByEnumeratingWithState:  (struct __objcFastEnumerationState *)state objects:  (id *)items count:(unsigned int)stackcount
11         return 0;
13 @end
15 @interface MyList (BasicTest)
16 - (void)compilerTestAgainst;
17 @end
19 int LOOP();
20 int INNERLOOP();
21 void END_LOOP();
22 @implementation MyList (BasicTest)
23 - (void)compilerTestAgainst {
24   id el;
25         for (el in self) 
26           { LOOP(); 
27             for (id el1 in self) 
28                INNER_LOOP();
30             END_LOOP();
31           }
33 @end