Chuanqi Xu 8410babc2b
[C++20] [Moduels] Correct the linkage of const variable in language linkage from module interfaces (#102574)
Close https://github.com/llvm/llvm-project/issues/99825

The root cause of the issue is that I didn't realize the things in
implicit global module (the language linkage in module interfaces)
should be considered in module purview.
2024-08-09 14:48:56 +08:00

9 lines
153 B
C++

// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
// expected-no-diagnostics
export module mod;
extern "C++"
{
export constexpr auto x = 10;
}