aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2024-08-15 14:38:47 -0400
committerPatrick Palka <ppalka@redhat.com>2024-08-15 14:38:47 -0400
commit580fe7979f3c873eae885568d2c17c9e110670b4 (patch)
tree0d4c7215cbc50cb0ea488ccd2ed3c8b57bb1165e /gcc/testsuite/g++.dg/cpp23
parent3673b7054ec268c445620b9c52d25e65bc9a7f96 (diff)
downloadgcc-580fe7979f3c873eae885568d2c17c9e110670b4.zip
gcc-580fe7979f3c873eae885568d2c17c9e110670b4.tar.gz
gcc-580fe7979f3c873eae885568d2c17c9e110670b4.tar.bz2
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.
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp23')
-rw-r--r--gcc/testsuite/g++.dg/cpp23/consteval-if13.C1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp23/consteval-if13.C b/gcc/testsuite/g++.dg/cpp23/consteval-if13.C
index b98bbc3..b10ec18b 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;