]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: tweak constexpr-lamda1.C [PR118053]
authorJason Merrill <jason@redhat.com>
Sat, 15 Feb 2025 12:28:37 +0000 (13:28 +0100)
committerJason Merrill <jason@redhat.com>
Sat, 15 Feb 2025 12:28:37 +0000 (13:28 +0100)
I forgot to add the -O necessary to reproduce the bug before pushing the
fix.

PR c++/118053

gcc/testsuite/ChangeLog:

* g++.dg/cpp1y/constexpr-lambda1.C: Add -O.

gcc/testsuite/g++.dg/cpp1y/constexpr-lambda1.C

index 68152e26b89934befdf3cb34dd52f6a7e59829ad..dca3920ddc0ce91f72ecaa7bc12e1527be086b54 100644 (file)
@@ -1,5 +1,6 @@
 // PR c++/118053
 // { dg-do compile { target c++14 } }
+// { dg-additional-options -O }
 
 template <typename _Tp> struct vector {
   _Tp * _M_finish;