]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: tweak testcase for --stds=impcx
authorJason Merrill <jason@redhat.com>
Mon, 12 Jan 2026 09:36:23 +0000 (17:36 +0800)
committerJason Merrill <jason@redhat.com>
Mon, 12 Jan 2026 16:19:19 +0000 (00:19 +0800)
Implicit constexpr makes the use of x disappear, avoiding the exposure and
thus the diagnostic.

gcc/testsuite/ChangeLog:

* g++.dg/modules/internal-17_b.C: Add -fno-implicit-constexpr.

gcc/testsuite/g++.dg/modules/internal-17_b.C

index d6398fd68cdc3b2fe4cac62af240cb9783a62584..ad6114bd5f737cd1908760297db0cc8db5c80007 100644 (file)
@@ -1,5 +1,5 @@
 // PR c++/121576
-// { dg-additional-options "-fmodules -Wno-error=expose-global-module-tu-local -Wtemplate-names-tu-local -Wno-global-module" }
+// { dg-additional-options "-fmodules -Wno-error=expose-global-module-tu-local -Wtemplate-names-tu-local -Wno-global-module -fno-implicit-constexpr" }
 // { dg-module-cmi !X }
 
 module;