brintos

brintos / llvm-project-archived public Read only

0
0
Text · 534 B · 5ae36d8 Raw
29 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir -p %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/M.cppm -emit-module-interface -o %t/M.pcm6// RUN: %clang_cc1 -std=c++20 %t/P.cppm -emit-module-interface -o %t/P.pcm7// RUN: %clang_cc1 -std=c++20 %t/I.cpp -fmodule-file=M:P=%t/P.pcm -fmodule-file=M=%t/M.pcm -fsyntax-only -verify8 9//--- H.hpp10struct S{};11 12//--- M.cppm13export module M;14 15 16//--- P.cppm17module;18#include "H.hpp"19module M:P;20 21using T = S;22 23//--- I.cpp24// expected-no-diagnostics25module M;26import :P;27 28T f() { return {}; }29