summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/legacy-implementation-1.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/legacy-implementation-1.m')
-rw-r--r--clang/test/SemaObjC/legacy-implementation-1.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/legacy-implementation-1.m b/clang/test/SemaObjC/legacy-implementation-1.m
new file mode 100644
index 0000000..2e4c5ae
--- /dev/null
+++ b/clang/test/SemaObjC/legacy-implementation-1.m
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
+
+@implementation INTF // expected-warning {{cannot find interface declaration for 'INTF'}}
+@end
+
+INTF* pi;
+
+INTF* FUNC()
+{
+ return pi;
+}