1 2 #define import __import__ 3 import lookup_left_cxx; 4 #define IMPORT(X) __import__ 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++ -I %T %s -verify 20 // RUN: %clang_cc1 -ast-print -x c++ -I %T %s | FileCheck -check-prefix=CHECK-PRINT %s 21 // XFAIL: win32 22 23 // CHECK-PRINT: int *f0(int *); 24 // CHECK-PRINT: float *f0(float *); 25 // CHECK-PRINT: void test(int i, float f) 26 27