• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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// rdar://problem/47403222
9- (void)rdar47403222:(Dictionary *)opts {
10  [self undeclaredMethod:undeclaredArg];
11  // expected-error@-1{{no visible @interface for 'Test' declares the selector 'undeclaredMethod:'}}
12  // expected-error@-2{{use of undeclared identifier 'undeclaredArg}}
13  opts[(__bridge id)undeclaredKey] = 0;
14  // expected-error@-1{{use of undeclared identifier 'undeclaredKey'}}
15}
16@end
17