[clang] [clang][Modules] Don't treat recovered module-end at EOF as an included header (PR #225099)
Aleksandr Platonov via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 27 23:03:25 PDT 2026
================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -std=c++20 -fmodules -fsyntax-only -verify %s
+
+#pragma clang module build N // expected-error {{no matching '#pragma clang module endbuild'}}
+module N {}
+#pragma clang module contents
+#pragma clang module begin N // expected-error {{no matching '#pragma clang module end'}}
----------------
ArcsinX wrote:
I tried to change expected error here and see that test still passes
https://github.com/llvm/llvm-project/pull/225099
More information about the cfe-commits
mailing list