summaryrefslogtreecommitdiff
path: root/clang/test/ARCMT/migrate-emit-errors.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ARCMT/migrate-emit-errors.m')
-rw-r--r--clang/test/ARCMT/migrate-emit-errors.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/ARCMT/migrate-emit-errors.m b/clang/test/ARCMT/migrate-emit-errors.m
new file mode 100644
index 0000000..95c0d2f
--- /dev/null
+++ b/clang/test/ARCMT/migrate-emit-errors.m
@@ -0,0 +1,12 @@
+// 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' \ No newline at end of file