diff --git a/clang/test/SemaCXX/P2115.cpp b/clang/test/SemaCXX/P2115.cpp new file mode 100644 index 000000000000..4389be992440 --- /dev/null +++ b/clang/test/SemaCXX/P2115.cpp @@ -0,0 +1,21 @@ +// RUN: rm -rf %t +// RUN: split-file %s %t + + +// RUN: %clang -std=c++20 -fmodule-header %t/A.h -o %t/A.pcm +// RUN: %clang -std=c++20 -fmodule-header %t/B.h -o %t/B.pcm +// RUN: %clang -std=c++20 -fsyntax-only -fmodule-file=%t/A.pcm -fmodule-file=%t/B.pcm %t/main.cpp + +//--- A.h +// expected-no-diagnostics +enum { A = 0 }; + +//--- B.h +// expected-no-diagnostics +enum { B = 1 }; + +//--- main.cpp +// expected-no-diagnostics +import "A.h"; +import "B.h"; +int main() {} diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html index 56b6dd06a57f..bb7144b827c3 100755 --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -935,7 +935,7 @@ C++23, informally referred to as C++26.