2011-08-25 22:51:20 +08:00
|
|
|
|
|
|
|
// lookup_left.h: expected-note{{using}}
|
|
|
|
// lookup_right.h: expected-note{{also found}}
|
2012-03-02 06:07:04 +08:00
|
|
|
@__experimental_modules_import lookup_left_objc;
|
|
|
|
@__experimental_modules_import 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
|
2012-01-04 02:24:14 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map
|
|
|
|
// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -emit-module -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.map
|
|
|
|
// RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -verify %s
|
|
|
|
// RUN: %clang_cc1 -fmodules -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)
|
|
|
|
|