clang/test/SemaObjC/typo-correction-subscript.m
raw| 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{{use of undeclared identifier 'undeclaredArg}} |
| 11 | opts[(__bridge id)undeclaredKey] = 0; |
| 12 | // expected-error@-1{{use of undeclared identifier 'undeclaredKey'}} |
| 13 | } |
| 14 | @end |