forked from OSchip/llvm-project
12 lines
301 B
Mathematica
12 lines
301 B
Mathematica
|
// RUN: %clang_cc1 -arcmt-migrate -arcmt-migrate-directory %t -arcmt-migrate-emit-errors %s -fobjc-nonfragile-abi 2>&1 | FileCheck %s
|
||
|
// RUN: rm -rf %t
|
||
|
|
||
|
@protocol NSObject
|
||
|
- (oneway void)release;
|
||
|
@end
|
||
|
|
||
|
void test(id p) {
|
||
|
[p release];
|
||
|
}
|
||
|
|
||
|
// CHECK: error: ARC forbids explicit message send of 'release'
|