blob: d45f93661b9ac2ccaf12e8d6ad084e0acd91a4fd [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 Gregor65030af2011-08-31 18:19:09 +00004__import_module__ lookup_left_objc;
5__import_module__ 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 Gregor6aa52ec2011-08-26 23:56:07 +000011// 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
Douglas Gregor6e975c42011-09-13 23:15:45 +000013// RUN: %clang_cc1 -x objective-c -fmodule-cache-path %T -fdisable-module-hash -verify %s
14// RUN: %clang_cc1 -ast-print -x objective-c -fmodule-cache-path %T -fdisable-module-hash %s | FileCheck -check-prefix=CHECK-PRINT %s
Douglas Gregor3d15ab82011-08-25 14:51:20 +000015
16// CHECK-PRINT: - (int) method;
17// CHECK-PRINT: - (double) method
18// CHECK-PRINT: void test(id x)
19