• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.map
3// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -emit-module -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.map
4// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -I %S/Inputs -verify %s
5// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -ast-print -x objective-c -fmodules-cache-path=%t -I %S/Inputs %s | FileCheck -check-prefix=CHECK-PRINT %s
6
7@import lookup_left_objc;
8@import lookup_right_objc;
9
10void test(id x) {
11  [x method];
12// expected-warning@-1{{multiple methods named 'method' found}}
13// expected-note@Inputs/lookup_left.h:2{{using}}
14// expected-note@Inputs/lookup_right.h:3{{also found}}
15}
16
17// CHECK-PRINT: - (int) method;
18// CHECK-PRINT: - (double) method
19// CHECK-PRINT: void test(id x)
20
21