Fariborz Jahanian | 17c6c85 | 2010-08-10 18:32:37 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -Wstrict-selector-match -fsyntax-only -verify %s |
| 2 | |
Fariborz Jahanian | 17c6c85 | 2010-08-10 18:32:37 +0000 | [diff] [blame] | 3 | @interface Base |
| 4 | - (id) meth1: (Base *)arg1; // expected-note {{using}} |
| 5 | - (id) window; // expected-note {{using}} |
| 6 | @end |
| 7 | |
| 8 | @interface Derived: Base |
| 9 | - (id) meth1: (Derived *)arg1; // expected-note {{also found}} |
| 10 | - (Base *) window; // expected-note {{also found}} |
| 11 | @end |
| 12 | |
| 13 | void foo(void) { |
| 14 | id r; |
| 15 | |
Richard Trieu | 2fe9b7f | 2011-12-15 00:38:15 +0000 | [diff] [blame] | 16 | [r meth1:r]; // expected-warning {{multiple methods named 'meth1:' found}} |
| 17 | [r window]; // expected-warning {{multiple methods named 'window' found}} |
Fariborz Jahanian | 17c6c85 | 2010-08-10 18:32:37 +0000 | [diff] [blame] | 18 | } |