1*67e74705SXin Li// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o - 2*67e74705SXin Li 3*67e74705SXin Li@interface MyList 4*67e74705SXin Li- (id) allKeys; 5*67e74705SXin Li@end 6*67e74705SXin Li 7*67e74705SXin Li@implementation MyList 8*67e74705SXin Li- (unsigned int)countByEnumeratingWithState: (struct __objcFastEnumerationState *)state objects: (id *)items count:(unsigned int)stackcount 9*67e74705SXin Li{ 10*67e74705SXin Li return 0; 11*67e74705SXin Li} 12*67e74705SXin Li- (id) allKeys { return 0; } 13*67e74705SXin Li@end 14*67e74705SXin Li 15*67e74705SXin Li@interface MyList (BasicTest) 16*67e74705SXin Li- (void)compilerTestAgainst; 17*67e74705SXin Li@end 18*67e74705SXin Li 19*67e74705SXin Liint LOOP(); 20*67e74705SXin Li@implementation MyList (BasicTest) 21*67e74705SXin Li- (void)compilerTestAgainst { 22*67e74705SXin Li MyList * el; 23*67e74705SXin Li for (el in [el allKeys]) { LOOP(); 24*67e74705SXin Li } 25*67e74705SXin Li 26*67e74705SXin Li for (id el1 in[el allKeys]) { LOOP(); 27*67e74705SXin Li } 28*67e74705SXin Li for (el in([el allKeys])) { LOOP(); 29*67e74705SXin Li } 30*67e74705SXin Li} 31*67e74705SXin Li@end 32*67e74705SXin Li 33