2 // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs %s -verify
8 - (void)method5:(D*)obj;
11 // expected-note@Inputs/MethodPoolA.h:7{{using}}
12 // expected-note@Inputs/MethodPoolB.h:12{{also found}}
14 void testMethod1(id object) {
18 void testMethod2(id object) {
22 void testMethod4(id object) {
23 [object method4]; // expected-warning{{instance method '-method4' not found (return type defaults to 'id')}}
26 void testMethod5(id object, D* d) {
32 void testMethod1Again(id object) {
36 void testMethod2Again(id object) {
37 [object method2:1]; // expected-warning{{multiple methods named 'method2:' found}}
40 void testMethod3(id object) {
41 [object method3]; // expected-warning{{instance method '-method3' not found (return type defaults to 'id')}}
44 @import MethodPoolB.Sub;
46 void testMethod3Again(id object) {
47 char *str = [object method3]; // okay: only found in MethodPoolB.Sub
50 void testMethod6(id object) {
54 @import MethodPoolA.Sub;
56 void testMethod3AgainAgain(id object) {
57 [object method3]; // expected-warning{{multiple methods named 'method3' found}}
58 // expected-note@Inputs/MethodPoolBSub.h:2{{using}}
59 // expected-note@Inputs/MethodPoolASub.h:2{{also found}}
62 void testMethod4Again(id object) {
66 void testMethod5Again(id object, D* d) {