xref: /aosp_15_r20/external/clang/test/ARCMT/with-arc-mode-modify.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -x objective-c %s.result
2*67e74705SXin Li// RUN: cp %s %t
3*67e74705SXin Li// RUN: %clang_cc1 -arcmt-modify -fsyntax-only -fobjc-arc -x objective-c %t
4*67e74705SXin Li// RUN: diff %t %s.result
5*67e74705SXin Li// RUN: rm %t
6*67e74705SXin Li
7*67e74705SXin Li@protocol NSObject
8*67e74705SXin Li- (oneway void)release;
9*67e74705SXin Li@end
10*67e74705SXin Li
11*67e74705SXin Livoid test1(id p) {
12*67e74705SXin Li  [p release];
13*67e74705SXin Li}
14