blob: 6de7a115cd3cd06d2900fa4c4a39c0b72dd26985 [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 Gregor5948ae12012-01-03 18:04:46 +00004@import lookup_left_objc;
5@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 Gregor66490142011-11-29 22:42:06 +000012// RUN: %clang_cc1 -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map
13// RUN: %clang_cc1 -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.map
Douglas Gregor14325692011-11-16 00:21:54 +000014// 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