https://gcc.gnu.org/g:580fe7979f3c873eae885568d2c17c9e110670b4

commit r15-2938-g580fe7979f3c873eae885568d2c17c9e110670b4
Author: Patrick Palka <ppa...@redhat.com>
Date:   Thu Aug 15 14:38:47 2024 -0400

    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:
---
 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 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;

Reply via email to