xref: /llvm-project/clang/test/CXX/module/module.unit/p7/t6.cpp (revision 9c04851cf5809c80862183481f8ced0b3e9ee301)
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;
printX(CPP * cpp)10 void printX(CPP *cpp) {
11   cpp->print();
12 }
13