clang/test/CXX/module/module.unit/p7/t6.cpp
raw| 1 | // RUN: rm -fr %t |
| 2 | // RUN: mkdir %t |
| 3 | // RUN: %clang_cc1 -std=c++20 -emit-module-interface %S/Inputs/CPP.cppm -I%S/Inputs -o %t/X.pcm |
| 4 | // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %s -verify |
| 5 | // expected-no-diagnostics |
| 6 | module; |
| 7 | #include "Inputs/h2.h" |
| 8 | export module use; |
| 9 | import X; |
| 10 | void printX(CPP *cpp) { |
| 11 | cpp->print(); |
| 12 | } |