mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-05 12:51:16 +00:00
f7639e1b4a
the new Objective-C NSArray/NSDictionary/NSNumber literal syntax. This introduces a new library, libEdit, which provides a new way to support migration of code that improves on the original ARC migrator. We now believe that most of its functionality can be refactored into the existing libraries, and thus this new library may shortly disappear. llvm-svn: 152141
12 lines
276 B
Objective-C
12 lines
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' |