summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/super-property-notation.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/super-property-notation.m')
-rw-r--r--test/SemaObjC/super-property-notation.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaObjC/super-property-notation.m b/test/SemaObjC/super-property-notation.m
index 2b13a5c..7d7b84d 100644
--- a/test/SemaObjC/super-property-notation.m
+++ b/test/SemaObjC/super-property-notation.m
@@ -50,3 +50,9 @@ __attribute__((objc_root_class)) @interface ClassBase
[super setFoo:foo]; // works with no warning
}
@end
+
+@implementation IFaceNotFound (Foo) // expected-error {{cannot find interface declaration for 'IFaceNotFound'}}
+-(int) foo {
+ return super.foo; // expected-error {{expected identifier or '('}}
+}
+@end
OpenPOWER on IntegriCloud