diff mbox series

[pushed] c++: add testcase [PR116929]

Message ID 20241022215619.2120284-1-jason@redhat.com
State New
Headers show
Series [pushed] c++: add testcase [PR116929] | expand

Commit Message

Jason Merrill Oct. 22, 2024, 9:56 p.m. UTC
Tested x86_64-pc-linux-gnu, applying to trunk.

-- 8< --

This testcase was fixed by r15-822-g0173dcce92baa6 .

	PR c++/116929

gcc/testsuite/ChangeLog:

	* g++.dg/modules/enum-14.C: New test.
---
 gcc/testsuite/g++.dg/modules/enum-14.C | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/modules/enum-14.C


base-commit: f191c8301545658543773ba3d0e6f3f0927529e0
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/modules/enum-14.C b/gcc/testsuite/g++.dg/modules/enum-14.C
new file mode 100644
index 00000000000..636d797afdc
--- /dev/null
+++ b/gcc/testsuite/g++.dg/modules/enum-14.C
@@ -0,0 +1,6 @@ 
+// PR c++/116929
+// { dg-additional-options "-flto -fmodules-ts -Wno-global-module" }
+
+module;
+enum { e };
+void hexdump() {}