2012-03-07 04:06:33 +08:00
|
|
|
// RUN: %clang_cc1 -arcmt-migrate -mt-migrate-directory %t -arcmt-migrate-emit-errors %s 2>&1 | FileCheck %s
|
2011-07-20 01:20:03 +08:00
|
|
|
// 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'
|