summaryrefslogtreecommitdiff
path: root/test/SemaObjC/undef-class-property-error.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/undef-class-property-error.m')
-rw-r--r--test/SemaObjC/undef-class-property-error.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaObjC/undef-class-property-error.m b/test/SemaObjC/undef-class-property-error.m
new file mode 100644
index 000000000000..e7e5db41efbe
--- /dev/null
+++ b/test/SemaObjC/undef-class-property-error.m
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+@implementation I (C) // expected-error {{cannot find interface declaration for 'I'}}
+
++ (void)f {
+ self.m; // expected-error {{member reference base type 'Class' is not a structure or union}}
+}
+
+@end