]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: -fimplicit-constexpr testcase tweak
authorJason Merrill <jason@redhat.com>
Fri, 29 Aug 2025 08:11:11 +0000 (10:11 +0200)
committerJason Merrill <jason@redhat.com>
Fri, 29 Aug 2025 08:11:11 +0000 (10:11 +0200)
If B::get is (implictly or explicitly) constexpr the individual b bindings
have constant initialization and get optimized away, so their symbols don't
appear in the assembly.

gcc/testsuite/ChangeLog:

* g++.dg/cpp26/decomp26.C: Add -fimplicit-constexpr.

gcc/testsuite/g++.dg/cpp26/decomp26.C

index 24865ca7e56c76c47c939774ff885a4c8567ea17..7560ac37ab7590a7945aec5fb5b545902e8db3b3 100644 (file)
@@ -1,6 +1,6 @@
 // P1061R10 - Structured Bindings can introduce a Pack
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-implicit-constexpr" }
 // { dg-final { scan-assembler "_ZZ3fooI1AEivE1a:" } }
 // { dg-final { scan-assembler "_ZZ3fooI1AEivE1b:" } }
 // { dg-final { scan-assembler "_ZZ3fooI1AEivE1c:" } }