blob: c82503f79035eb302ec0c8163b03ea64a46066dd [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}}
Ted Kremenek32ad2ee2012-03-01 22:07:04 +00004@__experimental_modules_import lookup_left_objc;
5@__experimental_modules_import 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
Douglas Gregor94ad28b2012-01-03 18:24:14 +000012// 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 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