20 lines · plain
1// RUN: %clang_cc1 -Wobjc-multiple-method-names -x objective-c %s -verify2// PR220473 4@interface Face05- (void)foo:(float)i; // expected-note {{using}}6@end7 8@interface Face19- (void)foo:(int)i __attribute__((unavailable));10@end11 12@interface Face213- (void)foo:(char)i; // expected-note {{also found}}14@end15 16void f(id i) {17 [i foo:4.0f]; // expected-warning {{multiple methods named 'foo:' found}}18}19 20