brintos

brintos / llvm-project-archived public Read only

0
0
Text · 418 B · a9184e1 Raw
18 lines · cpp
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4 5// RUN: %clang_cc1 -std=c++20 -verify -emit-module-interface %t/B.cpp -o %t/B.pcm6// RUN: %clang_cc1 -std=c++20 -verify -emit-module-interface %t/A.cpp -fmodule-file=A:B=%t/B.pcm -o %t/A.pcm7 8//--- A.cpp9// expected-no-diagnostics10export module A;11import :B;12export int x = dimensions + 1;13 14//--- B.cpp15// expected-no-diagnostics16export module A:B;17const int dimensions=3;18