blob: 7bb164723e19eb0af9865c2f11db2e233946a6ae [file] [log] [blame]
John McCall8f0e8d22011-06-15 23:25:17 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result
Argyrios Kyrtzidiseaed19e2011-06-16 00:53:46 +00002// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -x objective-c %s > %t
John McCall8f0e8d22011-06-15 23:25:17 +00003// RUN: diff %t %s.result
4
5@interface NSAutoreleasePool
6- drain;
7+new;
8+alloc;
9-init;
10-autorelease;
11-release;
12@end
13
14void NSLog(id, ...);
15
16int main (int argc, const char * argv[]) {
17 @autoreleasepool {
18 @autoreleasepool {
19
20 while (argc) {
21 return 0;
22 }
23
24 }
25 }
26
27 return 0;
28}