1 // RUN: %clang_cc1 -Wobjc-multiple-method-names -x objective-c %s -verify 2 // PR22047 3 4 @interface Face0 5 - (void)foo:(float)i; // expected-note {{using}} 6 @end 7 8 @interface Face1 9 - (void)foo:(int)i __attribute__((unavailable)); 10 @end 11 12 @interface Face2 13 - (void)foo:(char)i; // expected-note {{also found}} 14 @end 15 16 void f(id i) { 17 [i foo:4.0f]; // expected-warning {{multiple methods named 'foo:' found}} 18 } 19 20