]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: fix up cpp23/consteval-if3.C test [PR115583]
authorPatrick Palka <ppalka@redhat.com>
Thu, 15 Aug 2024 18:38:47 +0000 (14:38 -0400)
committerPatrick Palka <ppalka@redhat.com>
Thu, 15 Aug 2024 18:38:47 +0000 (14:38 -0400)
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

index b98bbc33d1335bc1ce95e6eea0baf5323de188e2..b10ec18b3c6e9a5ac80cafe97113d378a172c613 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/115583
 // { dg-do compile { target c++23 } }
+// { dg-additional-options -O }
 
 consteval int f(int i) {
   return i;