1 | // RUN: %clang %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o |
2 | // RUN: %clang %target_itanium_abi_host_triple %t.o -o %t.out -framework Foundation |
3 | // RUN: %test_debuginfo %s %t.out |
4 | // |
5 | // REQUIRES: system-darwin |
6 | // Radar 8757124 |
7 | |
8 | // DEBUGGER: break 25 |
9 | // DEBUGGER: r |
10 | // DEBUGGER: po thing |
11 | // CHECK: aaa |
12 | |
13 | #import <Foundation/Foundation.h> |
14 | |
15 | int 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 | |