xref: /llvm-project/clang/test/Modules/cxx20-impl-module-conditionally-load.cppm (revision 1782e8f9e882e8f4fb59968ff555c8c93827ea02)
1// From https://github.com/llvm/llvm-project/issues/57293
2// RUN: rm -rf %t
3// RUN: mkdir -p %t
4// RUN: split-file %s %t
5//
6// RUN: %clang_cc1 -std=c++20 %t/m.cppm -emit-module-interface -o %t/m.pcm
7// RUN: %clang_cc1 -std=c++20 %t/m.cpp -fmodule-file=m=%t/m.pcm -verify -fsyntax-only
8// RUN: %clang_cc1 -std=c++20 %t/m.cpp -fprebuilt-module-path=%t -verify -fsyntax-only
9
10//--- m.cppm
11export module m;
12
13//--- m.cpp
14// expected-no-diagnostics
15module m;
16