brintos

brintos / llvm-project-archived public Read only

0
0
Text · 517 B · 330b10b Raw
19 lines · plain
1// RUN: %clang_cc1  -Wstrict-selector-match -fsyntax-only -verify %s2 3@interface Base4- (id) meth1: (Base *)arg1; 	// expected-note {{using}}5- (id) window;	// expected-note {{using}}6@end7 8@interface Derived: Base9- (id) meth1: (Derived *)arg1;	// expected-note {{also found}}10- (Base *) window;	// expected-note {{also found}}11@end12 13void foo(void) {14  id r;15 16  [r meth1:r];	// expected-warning {{multiple methods named 'meth1:' found}}17  [r window]; 	// expected-warning {{multiple methods named 'window' found}}18}19