Debian Codegraph @

clang/test/Modules/cxx20-impl-module-conditionally-load.cppm

raw
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
11 export module m;
12
13 //--- m.cpp
14 // expected-no-diagnostics
15 module m;