brintos

brintos / llvm-project-archived public Read only

0
0
Text · 400 B · 9fd83b2 Raw
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