blob: a9184e1521e8ed8f4fa1884e53f799ee06a978c4 [file] [log] [blame] [edit]
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: %clang_cc1 -std=c++20 -verify -emit-module-interface %t/B.cpp -o %t/B.pcm
// RUN: %clang_cc1 -std=c++20 -verify -emit-module-interface %t/A.cpp -fmodule-file=A:B=%t/B.pcm -o %t/A.pcm
//--- A.cpp
// expected-no-diagnostics
export module A;
import :B;
export int x = dimensions + 1;
//--- B.cpp
// expected-no-diagnostics
export module A:B;
const int dimensions=3;