diff options
Diffstat (limited to 'clang/test/ARCMT/with-arc-mode-modify.m')
-rw-r--r-- | clang/test/ARCMT/with-arc-mode-modify.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/ARCMT/with-arc-mode-modify.m b/clang/test/ARCMT/with-arc-mode-modify.m new file mode 100644 index 0000000..fbbd630 --- /dev/null +++ b/clang/test/ARCMT/with-arc-mode-modify.m @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -x objective-c %s.result +// RUN: cp %s %t +// RUN: %clang_cc1 -arcmt-modify -fsyntax-only -fobjc-arc -x objective-c %t +// RUN: diff %t %s.result +// RUN: rm %t + +@protocol NSObject +- (oneway void)release; +@end + +void test1(id p) { + [p release]; +} |