Douglas Gregor | 3d15ab8 | 2011-08-25 14:51:20 +0000 | [diff] [blame] | 1 | |
| 2 | // lookup_left.h: expected-note{{using}} |
| 3 | // lookup_right.h: expected-note{{also found}} |
Ted Kremenek | 32ad2ee | 2012-03-01 22:07:04 +0000 | [diff] [blame^] | 4 | @__experimental_modules_import lookup_left_objc; |
| 5 | @__experimental_modules_import lookup_right_objc; |
Douglas Gregor | 3d15ab8 | 2011-08-25 14:51:20 +0000 | [diff] [blame] | 6 | |
| 7 | void test(id x) { |
| 8 | [x method]; // expected-warning{{multiple methods named 'method' found}} |
| 9 | } |
| 10 | |
Douglas Gregor | 1432569 | 2011-11-16 00:21:54 +0000 | [diff] [blame] | 11 | // RUN: rm -rf %t |
Douglas Gregor | 94ad28b | 2012-01-03 18:24:14 +0000 | [diff] [blame] | 12 | // RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map |
| 13 | // RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.map |
| 14 | // RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -verify %s |
| 15 | // RUN: %clang_cc1 -fmodules -ast-print -x objective-c -fmodule-cache-path %t %s | FileCheck -check-prefix=CHECK-PRINT %s |
Douglas Gregor | 3d15ab8 | 2011-08-25 14:51:20 +0000 | [diff] [blame] | 16 | |
| 17 | // CHECK-PRINT: - (int) method; |
| 18 | // CHECK-PRINT: - (double) method |
| 19 | // CHECK-PRINT: void test(id x) |
| 20 | |