brintos

brintos / llvm-project-archived public Read only

0
0
Text · 475 B · 0670c42 Raw
31 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/B.cppm -fprebuilt-module-path=%t -emit-llvm -o %t/B.ll7 8//--- A.cppm9export module A;10 11export template<typename>12struct holder {13};14 15struct foo {};16 17export struct a {18	holder<foo> m;19};20 21//--- B.cppm22// expected-no-diagnostics23export module B;24 25import A;26 27struct foo {};28 29struct b {30	holder<foo> m;31};