brintos

brintos / llvm-project-archived public Read only

0
0
Text · 972 B · 33e0408 Raw
21 lines · plain
1// RUN: rm -rf %t2// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -emit-module -x objective-c -fmodule-name=lookup_left_objc %S/Inputs/module.modulemap3// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -emit-module -x objective-c -fmodule-name=lookup_right_objc %S/Inputs/module.modulemap4// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -I %S/Inputs -verify %s5// 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 %s6 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_right.h:3{{using}}14// expected-note@Inputs/lookup_left.h:2{{also found}}15}16 17// CHECK-PRINT: - (int)method;18// CHECK-PRINT: - (double)method19// CHECK-PRINT: void test(id x)20 21