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}} |
| 4 | |
| 5 | void test(id x) { |
| 6 | [x method]; // expected-warning{{multiple methods named 'method' found}} |
| 7 | } |
| 8 | |
Douglas Gregor | 467dc88 | 2011-08-25 22:30:56 +0000 | [diff] [blame] | 9 | // 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 Gregor | 3d15ab8 | 2011-08-25 14:51:20 +0000 | [diff] [blame] | 11 | // 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 | |