diff options
Diffstat (limited to 'clang/test/SemaObjC/super.m')
-rw-r--r-- | clang/test/SemaObjC/super.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/super.m b/clang/test/SemaObjC/super.m index a61d72fda5a..a644e84e1cf 100644 --- a/clang/test/SemaObjC/super.m +++ b/clang/test/SemaObjC/super.m @@ -16,7 +16,7 @@ @implementation B - (void)instanceMethod { - [super iMethod]; // expected-warning{{method '-iMethod' not found (return type defaults to 'id')}} + [super iMethod]; // expected-warning{{'A' may not respond to 'iMethod')}} } + classMethod { @@ -37,12 +37,15 @@ void f0(int super) { expected-warning {{method '-m' not found (return type defaults to 'id')}} } void f1(int puper) { - [super m]; // expected-error{{use of undeclared identifier 'super'}} + [super m]; // expected-error{{'super' not valid when not in a method}} } // radar 7400691 typedef Foo super; +typedef Foo FooTD; + void test() { + [FooTD cMethod]; [super cMethod]; } |