2011-08-25 22:51:20 +08:00
|
|
|
|
|
|
|
// lookup_left.h: expected-note{{using}}
|
|
|
|
// lookup_right.h: expected-note{{also found}}
|
2011-09-01 02:19:09 +08:00
|
|
|
__import_module__ lookup_left_objc;
|
|
|
|
__import_module__ lookup_right_objc;
|
2011-08-25 22:51:20 +08:00
|
|
|
|
|
|
|
void test(id x) {
|
|
|
|
[x method]; // expected-warning{{multiple methods named 'method' found}}
|
|
|
|
}
|
|
|
|
|
2011-11-16 08:21:54 +08:00
|
|
|
// RUN: rm -rf %t
|
2011-11-30 06:42:06 +08:00
|
|
|
// RUN: %clang_cc1 -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map
|
|
|
|
// RUN: %clang_cc1 -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.map
|
2011-11-16 08:21:54 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -verify %s
|
|
|
|
// RUN: %clang_cc1 -ast-print -x objective-c -fmodule-cache-path %t %s | FileCheck -check-prefix=CHECK-PRINT %s
|
2011-08-25 22:51:20 +08:00
|
|
|
|
|
|
|
// CHECK-PRINT: - (int) method;
|
|
|
|
// CHECK-PRINT: - (double) method
|
|
|
|
// CHECK-PRINT: void test(id x)
|
|
|
|
|