Fix the clang-wpa example.
[clang.git] / test / Rewriter / rewrite-foreach-3.m
blobffe8295954e4f20f5042fb69b176ea603baebfef
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 @implementation MyList (BasicTest)
21 - (void)compilerTestAgainst {
22   MyList * el;
23         for (el in self) 
24           { LOOP(); }
25         for (MyList *  el1 in self) 
26           LOOP();
28 @end