blob: ff2df9807f63c349912dd25cd8a895025ffec26a [file] [log] [blame]
Douglas Gregor3d15ab82011-08-25 14:51:20 +00001
2// lookup_left.h: expected-note{{using}}
3// lookup_right.h: expected-note{{also found}}
Douglas Gregor65030af2011-08-31 18:19:09 +00004__import_module__ lookup_left_objc;
5__import_module__ lookup_right_objc;
Douglas Gregor3d15ab82011-08-25 14:51:20 +00006
7void test(id x) {
8 [x method]; // expected-warning{{multiple methods named 'method' found}}
9}
10
Douglas Gregor14325692011-11-16 00:21:54 +000011// RUN: rm -rf %t
12// RUN: %clang_cc1 -fmodule-cache-path %t -emit-module-from-map -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map
13// RUN: %clang_cc1 -fmodule-cache-path %t -emit-module-from-map -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.map
14// RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -verify %s
15// RUN: %clang_cc1 -ast-print -x objective-c -fmodule-cache-path %t %s | FileCheck -check-prefix=CHECK-PRINT %s
Douglas Gregor3d15ab82011-08-25 14:51:20 +000016
17// CHECK-PRINT: - (int) method;
18// CHECK-PRINT: - (double) method
19// CHECK-PRINT: void test(id x)
20