
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.
9 lines
153 B
C++
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;
|
|
}
|