From 34262b9835323907deb653d480f3847950028e35 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 29 Aug 2025 10:11:11 +0200 Subject: [PATCH] c++: -fimplicit-constexpr testcase tweak 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/cpp26/decomp26.C b/gcc/testsuite/g++.dg/cpp26/decomp26.C index 24865ca7e56..7560ac37ab7 100644 --- a/gcc/testsuite/g++.dg/cpp26/decomp26.C +++ b/gcc/testsuite/g++.dg/cpp26/decomp26.C @@ -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:" } } -- 2.47.3