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}} |
Douglas Gregor | 6aa52ec | 2011-08-26 23:56:07 +0000 | [diff] [blame] | 4 | __import__ lookup_left_objc; |
| 5 | __import__ lookup_right_objc; |
Douglas Gregor | 3d15ab8 | 2011-08-25 14:51:20 +0000 | [diff] [blame] | 6 | |
| 7 | void test(id x) { |
| 8 | [x method]; // expected-warning{{multiple methods named 'method' found}} |
| 9 | } |
| 10 | |
Douglas Gregor | 6aa52ec | 2011-08-26 23:56:07 +0000 | [diff] [blame] | 11 | // RUN: %clang_cc1 -emit-module -x objective-c -o %T/lookup_left_objc.pcm %S/Inputs/lookup_left.h |
| 12 | // RUN: %clang_cc1 -emit-module -x objective-c -o %T/lookup_right_objc.pcm %S/Inputs/lookup_right.h |
| 13 | // RUN: %clang_cc1 -x objective-c -I %T -verify %s |
| 14 | // RUN: %clang_cc1 -ast-print -x objective-c -I %T %s | FileCheck -check-prefix=CHECK-PRINT %s |
Douglas Gregor | 3d15ab8 | 2011-08-25 14:51:20 +0000 | [diff] [blame] | 15 | |
| 16 | // CHECK-PRINT: - (int) method; |
| 17 | // CHECK-PRINT: - (double) method |
| 18 | // CHECK-PRINT: void test(id x) |
| 19 | |