1 2 #define import __import_module__ 3 import lookup_left_cxx; 4 #define IMPORT(X) __import_module__ X 5 IMPORT(lookup_right_cxx); 6 7 void test(int i, float f) { 8 // unqualified lookup 9 f0(&i); 10 f0(&f); 11 12 // qualified lookup into the translation unit 13 ::f0(&i); 14 ::f0(&f); 15 } 16 17 // RUN: %clang_cc1 -emit-module -x c++ -verify -o %T/lookup_left_cxx.pcm %S/Inputs/lookup_left.hpp 18 // RUN: %clang_cc1 -emit-module -x c++ -o %T/lookup_right_cxx.pcm %S/Inputs/lookup_right.hpp 19 // RUN: %clang_cc1 -x c++ -fmodule-cache-path %T %s -verify 20 // RUN: %clang_cc1 -ast-print -x c++ -fmodule-cache-path %T %s | FileCheck -check-prefix=CHECK-PRINT %s 21 22 // CHECK-PRINT: int *f0(int *); 23 // CHECK-PRINT: float *f0(float *); 24 // CHECK-PRINT: void test(int i, float f) 25 26