brintos

brintos / llvm-project-archived public Read only

0
0
Text · 770 B · 9e05597 Raw
48 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir -p %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm6// RUN: %clang_cc1 -std=c++20 %t/m-a.cppm -emit-module-interface -o %t/m-a.pcm7// RUN: %clang_cc1 -std=c++20 %t/b.cppm -emit-module-interface -o %t/m-b.pcm \8// RUN:     -fprebuilt-module-path=%t9// RUN: %clang_cc1 -std=c++20 %t/b.cpp -fsyntax-only -verify -fprebuilt-module-path=%t10 11//--- a.cppm12export module a;13namespace aa {14 15}16 17//--- m-a.cppm18export module m:a;19namespace aa {20struct A {};21}22 23//--- b.cppm24module m:b;25import :a;26 27namespace bb {28struct B {29    void func(aa::A);30};31}32 33//--- b.cpp34// expected-no-diagnostics35module m:b.impl;36import a;37import :b;38 39namespace bb {40using namespace aa;41 42void B::func(A) {} 43 44}45 46 47 48