blob: 50e6af9bfce1c36e2840a41fd4fd91eb17a20ffd [file] [log] [blame]
Devang Patel2d1d1f42011-06-13 23:16:051// 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 Kyrtzidis8f688172012-10-20 01:38:504//
5// REQUIRES: system-darwin
Devang Patel2d1d1f42011-06-13 23:16:056// Radar 8757124
7
8// DEBUGGER: break 25
9// DEBUGGER: r
10// DEBUGGER: po thing
11// CHECK: aaa
12
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