Devang Patel | 2d1d1f4 | 2011-06-13 23:16:05 | [diff] [blame] | 1 | // RUN: %clang -O0 -g %s -c -o %t.o |
| 2 | // RUN: %clang %t.o -o %t.out -framework Foundation |
| 3 | // RUN: %test_debuginfo %s %t.out |
Argyrios Kyrtzidis | 8f68817 | 2012-10-20 01:38:50 | [diff] [blame] | 4 | // |
| 5 | // REQUIRES: system-darwin |
Devang Patel | 2d1d1f4 | 2011-06-13 23:16:05 | [diff] [blame] | 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 | |