1 // RUN: rm -rf %t 2 // RUN: %clang_cc1 -fmodule-cache-path %t -fmodules -I %S/Inputs %s -verify 3 4 @__experimental_modules_import MethodPoolA; 5 6 7 // in other file: // expected-note{{using}} 8 9 10 11 12 // in other file: expected-note{{also found}} 13 14 void testMethod1(id object) { 15 [object method1]; 16 } 17 18 void testMethod2(id object) { 19 [object method2:1]; 20 } 21 22 @__experimental_modules_import MethodPoolB; 23 24 void testMethod1Again(id object) { 25 [object method1]; 26 } 27 28 void testMethod2Again(id object) { 29 [object method2:1]; // expected-warning{{multiple methods named 'method2:' found}} 30 } 31