From 580fe7979f3c873eae885568d2c17c9e110670b4 Mon Sep 17 00:00:00 2001 From: Patrick Palka Date: Thu, 15 Aug 2024 14:38:47 -0400 Subject: [PATCH] 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. --- gcc/testsuite/g++.dg/cpp23/consteval-if13.C | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/g++.dg/cpp23/consteval-if13.C b/gcc/testsuite/g++.dg/cpp23/consteval-if13.C index b98bbc33d133..b10ec18b3c6e 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; -- 2.47.2