blob: 85f1dd95d75dec1042dada22d06997e08dce5955 [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}}
4
5void test(id x) {
6 [x method]; // expected-warning{{multiple methods named 'method' found}}
7}
8
Douglas Gregor467dc882011-08-25 22:30:56 +00009// RUN: %clang_cc1 -emit-module -x objective-c -o %t_lookup_left.h.pch %S/Inputs/lookup_left.h
10// RUN: %clang_cc1 -emit-module -x objective-c -o %t_lookup_right.h.pch %S/Inputs/lookup_right.h
Douglas Gregor3d15ab82011-08-25 14:51:20 +000011// RUN: %clang_cc1 -x objective-c -import-module %t_lookup_left.h.pch -import-module %t_lookup_right.h.pch -verify %s
12// RUN: %clang_cc1 -ast-print -x objective-c -import-module %t_lookup_left.h.pch -import-module %t_lookup_right.h.pch %s | FileCheck -check-prefix=CHECK-PRINT %s
13
14// CHECK-PRINT: - (int) method;
15// CHECK-PRINT: - (double) method
16// CHECK-PRINT: void test(id x)
17