diff options
Diffstat (limited to 'test/ARCMT/cxx-rewrite.mm')
-rw-r--r-- | test/ARCMT/cxx-rewrite.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ARCMT/cxx-rewrite.mm b/test/ARCMT/cxx-rewrite.mm index aba3f7568b031..4a9c50c92426e 100644 --- a/test/ARCMT/cxx-rewrite.mm +++ b/test/ARCMT/cxx-rewrite.mm @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c++ %s.result -// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -x objective-c++ %s > %t +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -x objective-c++ %s.result +// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c++ %s > %t // RUN: diff %t %s.result #include "Common.h" @@ -14,6 +14,8 @@ struct foo { NSAutoreleasePool *pool = [NSAutoreleasePool new]; [[[NSString string] retain] release]; [pool drain]; + if (s) + [s release]; } ~foo(){ [s release]; } private: |