2010-09-17 15:54:40 +00:00
|
|
|
// RUN: %clang_cc1 -Wstrict-selector-match -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
@interface Base
|
|
|
|
- (id) meth1: (Base *)arg1; // expected-note {{using}}
|
|
|
|
- (id) window; // expected-note {{using}}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Derived: Base
|
|
|
|
- (id) meth1: (Derived *)arg1; // expected-note {{also found}}
|
|
|
|
- (Base *) window; // expected-note {{also found}}
|
|
|
|
@end
|
|
|
|
|
|
|
|
void foo(void) {
|
|
|
|
id r;
|
|
|
|
|
2012-04-14 14:01:31 +00:00
|
|
|
[r meth1:r]; // expected-warning {{multiple methods named 'meth1:' found}}
|
|
|
|
[r window]; // expected-warning {{multiple methods named 'window' found}}
|
2010-09-17 15:54:40 +00:00
|
|
|
}
|