xref: /llvm-project/clang/test/ARCMT/with-arc-mode-modify.m (revision 05eeda9752b393c074dd22716670bc3b9671270d)
1// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -x objective-c %s.result
2// RUN: cat %s > %t
3// RUN: %clang_cc1 -arcmt-action=modify -fsyntax-only -fobjc-arc -x objective-c %t
4// RUN: diff %t %s.result
5// RUN: rm %t
6
7@protocol NSObject
8- (oneway void)release;
9@end
10
11void test1(id p) {
12  [p release];
13}
14