llvm-project
12 строк · 284.0 Байт
1// RUN: %clang_cc1 -arcmt-action=migrate -mt-migrate-directory %t -arcmt-migrate-emit-errors %s 2>&1 | FileCheck %s
2// RUN: rm -rf %t
3
4@protocol NSObject
5- (oneway void)release;
6@end
7
8void test(id p) {
9[p release];
10}
11
12// CHECK: error: ARC forbids explicit message send of 'release'
13