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