Douglas Gregor | 0d266d6 | 2012-01-25 00:59:09 +0000 | [diff] [blame^] | 1 | // 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 | |
| 14 | void testMethod1(id object) { |
| 15 | [object method1]; |
| 16 | } |
| 17 | |
| 18 | void testMethod2(id object) { |
| 19 | [object method2:1]; |
| 20 | } |
| 21 | |
| 22 | @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 | } |