// RUN: %clang_cc1  -Wstrict-selector-match -fsyntax-only -verify %s

#include <objc/objc.h>

@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;

  [r meth1:r];	// expected-warning {{multiple methods named 'meth1:' found [-Wstrict-selector-match]}}
  [r window]; 	// expected-warning {{multiple methods named 'window' found [-Wstrict-selector-match]}}
}

// 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;

  [r meth1:r];	// expected-warning {{multiple methods named 'meth1:' found [-Wstrict-selector-match]}}
  [r window]; 	// expected-warning {{multiple methods named 'window' found [-Wstrict-selector-match]}}
}

Fix test to not depend on objc.h header.
Fix test to not depend on objc.h header.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@110729 91177308-0d34-0410-b5e6-96231b3b80d8
