]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: testcase tweak for -fimplicit-constexpr
authorJason Merrill <jason@redhat.com>
Tue, 19 Aug 2025 17:49:41 +0000 (13:49 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 19 Aug 2025 17:49:59 +0000 (13:49 -0400)
This testcase is testing the difference between functions that are or are
not declared constexpr.

gcc/testsuite/ChangeLog:

* g++.dg/cpp26/expansion-stmt16.C: Add -fno-implicit-constexpr.

gcc/testsuite/g++.dg/cpp26/expansion-stmt16.C

index e6f914e28ec5c3434ebeaaf08cf41b69339ff47f..b573d9d4b5ec353f9c2f1747e2aabd8c8fc51d7a 100644 (file)
@@ -1,6 +1,6 @@
 // C++26 P1306R5 - Expansion statements
 // { dg-do compile { target c++11 } }
-// { dg-options "" }
+// { dg-options "-fno-implicit-constexpr" }
 
 struct A { int s; };
 constexpr A a[] = { { 3 }, { 4 }, { 5 }, { 6 }, { 7 } };