minix/external/bsd/llvm/dist/clang/test/ARCMT/migrate-emit-errors.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

12 lines
No EOL
276 B
Objective-C

// RUN: %clang_cc1 -arcmt-migrate -mt-migrate-directory %t -arcmt-migrate-emit-errors %s 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'