Jonathan Roelofs | 7441136 | 2015-04-28 18:04:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -Wobjc-multiple-method-names -x objective-c %s -verify |
| 2 | // PR22047 |
| 3 | |
| 4 | @interface Face0 |
Manman Ren | 051d0b6 | 2016-04-13 23:43:56 +0000 | [diff] [blame] | 5 | - (void)foo:(float)i; // expected-note {{using}} |
Jonathan Roelofs | 7441136 | 2015-04-28 18:04:44 +0000 | [diff] [blame] | 6 | @end |
| 7 | |
| 8 | @interface Face1 |
Manman Ren | 051d0b6 | 2016-04-13 23:43:56 +0000 | [diff] [blame] | 9 | - (void)foo:(int)i __attribute__((unavailable)); |
Jonathan Roelofs | 7441136 | 2015-04-28 18:04:44 +0000 | [diff] [blame] | 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 | |