Douglas Gregor | 1432569 | 2011-11-16 00:21:54 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Douglas Gregor | 953a61f | 2013-02-07 19:01:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map |
| 3 | // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -emit-module -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.map |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 4 | // RUN: %clang_cc1 -fmodules -x objective-c -fmodules-cache-path=%t -I %S/Inputs -verify %s |
| 5 | // RUN: %clang_cc1 -fmodules -ast-print -x objective-c -fmodules-cache-path=%t -I %S/Inputs %s | FileCheck -check-prefix=CHECK-PRINT %s |
Douglas Gregor | 3d15ab8 | 2011-08-25 14:51:20 +0000 | [diff] [blame] | 6 | |
Andy Gibbs | b42f200 | 2013-04-17 08:06:46 +0000 | [diff] [blame] | 7 | @import lookup_left_objc; |
| 8 | @import lookup_right_objc; |
| 9 | |
| 10 | void test(id x) { |
| 11 | [x method]; |
| 12 | // expected-warning@-1{{multiple methods named 'method' found}} |
| 13 | // expected-note@Inputs/lookup_left.h:2{{using}} |
| 14 | // expected-note@Inputs/lookup_right.h:3{{also found}} |
| 15 | } |
| 16 | |
Douglas Gregor | 3d15ab8 | 2011-08-25 14:51:20 +0000 | [diff] [blame] | 17 | // CHECK-PRINT: - (int) method; |
| 18 | // CHECK-PRINT: - (double) method |
| 19 | // CHECK-PRINT: void test(id x) |
| 20 | |