Debian Codegraph @

clang/test/Modules/pr144230.cppm

raw
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: split-file %s %t
4
5 // RUN: %clang_cc1 -std=c++20 %t/A.cppm -emit-module-interface -o %t/A.pcm
6 // RUN: %clang_cc1 -std=c++20 %t/P.cppm -emit-module-interface -o %t/M-P.pcm -fprebuilt-module-path=%t
7 // RUN: %clang_cc1 -std=c++20 %t/M.cppm -emit-module-interface -o %t/M.pcm -fprebuilt-module-path=%t
8 // RUN: %clang_cc1 -std=c++20 %t/M.cpp -fprebuilt-module-path=%t -fsyntax-only -verify
9
10 //--- A.cppm
11 export module A;
12 export using T = int;
13
14 //--- P.cppm
15 export module M:P;
16 import A;
17
18 //--- M.cppm
19 export module M;
20 export import :P;
21
22 //--- M.cpp
23 // expected-no-diagnostics
24 module M;
25
26 T x;