From 741073460b9a850ca85b01509e08bf72900b6c8a Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 15 Feb 2025 13:28:37 +0100 Subject: [PATCH] testsuite: tweak constexpr-lamda1.C [PR118053] I forgot to add the -O necessary to reproduce the bug before pushing the fix. PR c++/118053 gcc/testsuite/ChangeLog: * g++.dg/cpp1y/constexpr-lambda1.C: Add -O. --- gcc/testsuite/g++.dg/cpp1y/constexpr-lambda1.C | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-lambda1.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-lambda1.C index 68152e26b89..dca3920ddc0 100644 --- a/gcc/testsuite/g++.dg/cpp1y/constexpr-lambda1.C +++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-lambda1.C @@ -1,5 +1,6 @@ // PR c++/118053 // { dg-do compile { target c++14 } } +// { dg-additional-options -O } template struct vector { _Tp * _M_finish; -- 2.47.2