summaryrefslogtreecommitdiff
path: root/clang/test/ARCMT/with-arc-mode-modify.m
blob: fbbd630700f4abbd487fe5f1441a82a4bc584819 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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];
}