blob: 9fd83b208ab7971bcc4a1f09b996d2522572e09b [file] [log] [blame]
Jonathan Roelofs74411362015-04-28 18:04:44 +00001// 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
16void f(id i) {
17 [i foo:4.0f]; // expected-warning {{multiple methods named 'foo:' found}}
18}
19