diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2015-01-20 16:53:34 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2015-01-20 16:53:34 +0000 |
| commit | 86dd4565ecedf4d8396cfe2a394f49216463f08e (patch) | |
| tree | 97fbb3806b6a9c16aa6bbbf4366140c78a4c3b98 /clang/test/SemaObjC | |
| parent | 45f7f9c1abc90ad9fd90012993b45a6fc6dec0f7 (diff) | |
| download | bcm5719-llvm-86dd4565ecedf4d8396cfe2a394f49216463f08e.tar.gz bcm5719-llvm-86dd4565ecedf4d8396cfe2a394f49216463f08e.zip | |
Patch fixes PR21932 crash on invalid code. Using
property-dot syntax on 'super' with no super
class. Patch by Jason Haslam.
llvm-svn: 226578
Diffstat (limited to 'clang/test/SemaObjC')
| -rw-r--r-- | clang/test/SemaObjC/super-property-notation.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/super-property-notation.m b/clang/test/SemaObjC/super-property-notation.m index 2b13a5c0f87..7d7b84deb7c 100644 --- a/clang/test/SemaObjC/super-property-notation.m +++ b/clang/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 |

