From: Patrick Palka Date: Thu, 15 Aug 2024 18:38:47 +0000 (-0400) Subject: c++: fix up cpp23/consteval-if3.C test [PR115583] X-Git-Tag: basepoints/gcc-16~6615 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=580fe7979f3c873eae885568d2c17c9e110670b4;p=thirdparty%2Fgcc.git c++: fix up cpp23/consteval-if3.C test [PR115583] Compiling with optimizations is needed to trigger the bug fixed by r15-2369. PR c++/115583 gcc/testsuite/ChangeLog: * g++.dg/cpp23/consteval-if13.C: Compile with -O. --- diff --git a/gcc/testsuite/g++.dg/cpp23/consteval-if13.C b/gcc/testsuite/g++.dg/cpp23/consteval-if13.C index b98bbc33d13..b10ec18b3c6 100644 --- a/gcc/testsuite/g++.dg/cpp23/consteval-if13.C +++ b/gcc/testsuite/g++.dg/cpp23/consteval-if13.C @@ -1,5 +1,6 @@ // PR c++/115583 // { dg-do compile { target c++23 } } +// { dg-additional-options -O } consteval int f(int i) { return i;