1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -Wstrict-selector-match -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc@interface Base 4*f4a2713aSLionel Sambuc- (id) meth1: (Base *)arg1; // expected-note {{using}} 5*f4a2713aSLionel Sambuc- (id) window; // expected-note {{using}} 6*f4a2713aSLionel Sambuc@end 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc@interface Derived: Base 9*f4a2713aSLionel Sambuc- (id) meth1: (Derived *)arg1; // expected-note {{also found}} 10*f4a2713aSLionel Sambuc- (Base *) window; // expected-note {{also found}} 11*f4a2713aSLionel Sambuc@end 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambucvoid foo(void) { 14*f4a2713aSLionel Sambuc id r; 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc [r meth1:r]; // expected-warning {{multiple methods named 'meth1:' found}} 17*f4a2713aSLionel Sambuc [r window]; // expected-warning {{multiple methods named 'window' found}} 18*f4a2713aSLionel Sambuc} 19