summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/stand-alone-implementation.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/stand-alone-implementation.m')
-rw-r--r--clang/test/SemaObjC/stand-alone-implementation.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/stand-alone-implementation.m b/clang/test/SemaObjC/stand-alone-implementation.m
new file mode 100644
index 0000000..6fa9b4b
--- /dev/null
+++ b/clang/test/SemaObjC/stand-alone-implementation.m
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
+// radar 7547942
+// Allow injection of ivars into implementation's implicit class.
+
+@implementation INTFSTANDALONE // expected-warning {{cannot find interface declaration for 'INTFSTANDALONE'}}
+{
+ id IVAR1;
+ id IVAR2;
+}
+- (id) Meth { return IVAR1; }
+@end
+