diff options
Diffstat (limited to 'test/Modules/lookup.cpp')
-rw-r--r-- | test/Modules/lookup.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/Modules/lookup.cpp b/test/Modules/lookup.cpp index e9f52b7c66..cae66211ca 100644 --- a/test/Modules/lookup.cpp +++ b/test/Modules/lookup.cpp @@ -1,3 +1,9 @@ + +#define import __import__ +import lookup_left_cxx; +#define IMPORT(X) __import__ X +IMPORT(lookup_right_cxx); + void test(int i, float f) { // unqualified lookup f0(&i); @@ -8,10 +14,10 @@ void test(int i, float f) { ::f0(&f); } -// RUN: %clang_cc1 -emit-module -x c++ -verify -o %t_lookup_left.h.pch %S/Inputs/lookup_left.hpp -// RUN: %clang_cc1 -emit-module -x c++ -o %t_lookup_right.h.pch %S/Inputs/lookup_right.hpp -// RUN: %clang_cc1 -x c++ -import-module %t_lookup_left.h.pch -import-module %t_lookup_right.h.pch -verify %s -// RUN: %clang_cc1 -ast-print -x c++ -import-module %t_lookup_left.h.pch -import-module %t_lookup_right.h.pch %s | FileCheck -check-prefix=CHECK-PRINT %s +// RUN: %clang_cc1 -emit-module -x c++ -verify -o %T/lookup_left_cxx.pcm %S/Inputs/lookup_left.hpp +// RUN: %clang_cc1 -emit-module -x c++ -o %T/lookup_right_cxx.pcm %S/Inputs/lookup_right.hpp +// RUN: %clang_cc1 -x c++ -I %T %s -verify +// RUN: %clang_cc1 -ast-print -x c++ -I %T %s | FileCheck -check-prefix=CHECK-PRINT %s // CHECK-PRINT: int *f0(int *); // CHECK-PRINT: float *f0(float *); |