brintos

brintos / llvm-project-archived public Read only

0
0
Text · 698 B · dcfa6e8 Raw
38 lines · plain
1// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  %s -o -2            3@protocol P @end4 5@interface MyList6@end7    8@implementation MyList9- (unsigned int)countByEnumeratingWithState:  (struct __objcFastEnumerationState *)state objects:  (id *)items count:(unsigned int)stackcount10{11        return 0;12}13@end14 15@interface MyList (BasicTest)16- (void)compilerTestAgainst;17@end18 19int LOOP(void);20@implementation MyList (BasicTest)21- (void)compilerTestAgainst {22  id el;23        for (el in self) 24	  { LOOP(); }25        for (id el1 in self) 26	  LOOP();27 28	for (el in (self)) 29          if (el)30            LOOP(); 31 32	for (el in ((self))) 33          if (el)34            LOOP(); 35}36@end37 38