From: Jason Merrill Date: Sat, 15 Feb 2025 12:28:37 +0000 (+0100) Subject: testsuite: tweak constexpr-lamda1.C [PR118053] X-Git-Tag: basepoints/gcc-16~1994 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741073460b9a850ca85b01509e08bf72900b6c8a;p=thirdparty%2Fgcc.git 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. --- 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;