diff options
Diffstat (limited to 'clang/test/SemaObjC/typo-correction-subscript.m')
| -rw-r--r-- | clang/test/SemaObjC/typo-correction-subscript.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/typo-correction-subscript.m b/clang/test/SemaObjC/typo-correction-subscript.m index 19eb860f2b2..bfcd894316a 100644 --- a/clang/test/SemaObjC/typo-correction-subscript.m +++ b/clang/test/SemaObjC/typo-correction-subscript.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple i386-apple-macosx10.10 -fobjc-arc -fsyntax-only -Wno-objc-root-class %s -verify -disable-free +// RUN: %clang_cc1 -triple i386-apple-macosx10.10 -fobjc-arc -fsyntax-only -Wno-objc-root-class %s -verify @class Dictionary; @@ -9,6 +9,7 @@ - (void)rdar47403222:(Dictionary *)opts { [self undeclaredMethod:undeclaredArg]; // expected-error@-1{{no visible @interface for 'Test' declares the selector 'undeclaredMethod:'}} + // expected-error@-2{{use of undeclared identifier 'undeclaredArg}} opts[(__bridge id)undeclaredKey] = 0; // expected-error@-1{{use of undeclared identifier 'undeclaredKey'}} } |

