Ashwin Kishin Banwari 48ff068c52
[NFC] [C++] [Modules] Mark P2788 as implemented and add test (#147138)
This is already implemented.
2025-07-08 10:01:08 +08:00

18 lines
418 B
C++

// 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;