32 lines · plain
1// RUN: %clang %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o2// RUN: %clang %target_itanium_abi_host_triple %t.o -o %t.out -framework Foundation3// RUN: %test_debuginfo %s %t.out 4//5// REQUIRES: system-darwin6// Radar 87571247 8// DEBUGGER: break 259// DEBUGGER: r10// DEBUGGER: po thing11// CHECK: aaa12 13#import <Foundation/Foundation.h>14 15int main (int argc, const char * argv[]) {16 17 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];18 NSArray *things = [NSArray arrayWithObjects:@"one", @"two", @"three" , nil];19 for (NSString *thing in things) {20 NSLog (@"%@", thing);21 }22 23 things = [NSArray arrayWithObjects:@"aaa", @"bbb", @"ccc" , nil];24 for (NSString *thing in things) {25 NSLog (@"%@", thing);26 }27 [pool release];28 return 0;29}30 31 32