1 // RUN: %clang_cc1 -Wmethod-signatures -fsyntax-only -verify %s
7 - (void) test1:(A*) object; // expected-note {{previous definition is here}}
8 - (void) test2:(B*) object;
12 - (void) test1:(B*) object {} // expected-warning {{conflicting parameter types in implementation of 'test1:': 'A *' vs 'B *'}}
13 - (void) test2:(A*) object {}
17 - (void) test1:(id) object; // expected-note {{previous definition is here}}
18 - (void) test2:(A*) object;
22 - (void) test1:(A*) object {} // expected-warning {{conflicting parameter types in implementation of 'test1:': 'id' vs 'A *'}}
23 - (void) test2:(id) object {}
28 - (B*) test2; // expected-note {{previous definition is here}}
32 - (B*) test1 { return 0; }
33 - (A*) test2 { return 0; } // expected-warning {{conflicting return type in implementation of 'test2': 'B *' vs 'A *'}}
36 // The particular case of overriding with an id return is white-listed.
42 - (A*) test1 { return 0; } // id -> A* is rdar://problem/8596987
43 - (id) test2 { return 0; }