[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / clang / test / SemaObjC / typo-correction-subscript.m
blobbfcd894316ac9c046df41a069a7c0fab7d9df031
1 // RUN: %clang_cc1 -triple i386-apple-macosx10.10 -fobjc-arc -fsyntax-only -Wno-objc-root-class %s -verify
3 @class Dictionary;
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'}}
16 @end