2015-04-29 02:04:44 +08:00
|
|
|
// RUN: %clang_cc1 -Wobjc-multiple-method-names -x objective-c %s -verify
|
|
|
|
// PR22047
|
|
|
|
|
|
|
|
@interface Face0
|
2016-04-14 07:43:56 +08:00
|
|
|
- (void)foo:(float)i; // expected-note {{using}}
|
2015-04-29 02:04:44 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Face1
|
2016-04-14 07:43:56 +08:00
|
|
|
- (void)foo:(int)i __attribute__((unavailable));
|
2015-04-29 02:04:44 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Face2
|
|
|
|
- (void)foo:(char)i; // expected-note {{also found}}
|
|
|
|
@end
|
|
|
|
|
|
|
|
void f(id i) {
|
|
|
|
[i foo:4.0f]; // expected-warning {{multiple methods named 'foo:' found}}
|
|
|
|
}
|
|
|
|
|