[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / SemaObjC / multiple-method-names.m
blob9fd83b208ab7971bcc4a1f09b996d2522572e09b
1 // RUN: %clang_cc1 -Wobjc-multiple-method-names -x objective-c %s -verify
2 // PR22047
4 @interface Face0
5 - (void)foo:(float)i; // expected-note {{using}}
6 @end
8 @interface Face1
9 - (void)foo:(int)i __attribute__((unavailable));
10 @end
12 @interface Face2
13 - (void)foo:(char)i; // expected-note {{also found}}
14 @end
16 void f(id i) {
17   [i foo:4.0f]; // expected-warning {{multiple methods named 'foo:' found}}