| 1 |
// RUN: %clang_cc1 -triple i386-apple-macosx10.10 -fobjc-arc -fsyntax-only -Wno-objc-root-class %s -verify |
| 2 |
|
| 3 |
@class Dictionary; |
| 4 |
|
| 5 |
@interface Test |
| 6 |
@end |
| 7 |
@implementation Test |
| 8 |
- (void)rdar47403222:(Dictionary *)opts { |
| 9 |
[self undeclaredMethod:undeclaredArg]; |
| 10 |
// expected-error@-1{{no visible @interface for 'Test' declares the selector 'undeclaredMethod:'}} |
| 11 |
// expected-error@-2{{use of undeclared identifier 'undeclaredArg}} |
| 12 |
opts[(__bridge id)undeclaredKey] = 0; |
| 13 |
// expected-error@-1{{use of undeclared identifier 'undeclaredKey'}} |
| 14 |
} |
| 15 |
@end |