]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: add testcase [PR116929]
authorJason Merrill <jason@redhat.com>
Tue, 22 Oct 2024 15:23:34 +0000 (11:23 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 22 Oct 2024 21:55:47 +0000 (17:55 -0400)
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 [new file with mode: 0644]

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