diff options
Diffstat (limited to 'test/SemaObjC/message.m')
-rw-r--r-- | test/SemaObjC/message.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaObjC/message.m b/test/SemaObjC/message.m index f43bdf98852d..40fa102f35d2 100644 --- a/test/SemaObjC/message.m +++ b/test/SemaObjC/message.m @@ -106,3 +106,15 @@ void foo5(id p) { // expected-note {{to match this '['}} \ // expected-warning {{instance method '-bar' not found}} } + +@interface I1 +-(void)unavail_meth __attribute__((unavailable)); // expected-note {{marked unavailable here}} +@end + +// rdar://13620447 +void foo6(I1 *p) { + [p + bar]; // expected-warning {{instance method '-bar' not found}} + [p + unavail_meth]; // expected-error {{unavailable}} +} |