blob: 120d7d7e79858c1d781f44703c2ff8676a36d5bc [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o -
Fariborz Jahanian7f93ce92008-01-09 00:47:02 +00002
3@protocol P @end
4
5@interface MyList
6@end
7
8@implementation MyList
9- (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount
10{
11 return 0;
12}
13@end
14
15@interface MyList (BasicTest)
16- (void)compilerTestAgainst;
17@end
18
19int LOOP();
20int INNERLOOP();
21void 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();
29
30 END_LOOP();
31 }
32}
33@end
34