testsuite: Require LTO support for pr94426-1.C
authorDavid Edelsohn <dje.gcc@gmail.com>
Fri, 24 Apr 2020 02:36:10 +0000 (22:36 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Fri, 24 Apr 2020 02:39:49 +0000 (22:39 -0400)
The testcase uses the -flto option but does not ensure that LTO support
is enabled. This patch adds the test to the testcase.

        * g++.dg/cpp0x/lambda/pr94426-1.C: Require LTO.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C

index 86331cd12117e1e654d7cdc81ad3771547a24242..1457b6dca2f70a10fba4a1458d7c3e0d0471acf0 100644 (file)
@@ -1,3 +1,7 @@
+2020-04-23  David Edelsohn  <dje.gcc@gmail.com>
+
+       * g++.dg/cpp0x/lambda/pr94426-1.C: Require LTO.
+
 2020-04-23  Martin Sebor  <msebor@redhat.com>
 
        PR driver/90983
index ae7cbf030919b4554024d1eb21050664f05557d4..620c9e3dc953c4c2932e36b10ff43b8b2dd81d4d 100644 (file)
@@ -1,6 +1,7 @@
 // { dg-do compile { target c++14 } }
 // PR 94426 ICE mangling lambda
 // { dg-options {-flto -O2} }
+// { dg-require-effective-target lto }
 
 template <bool> using Void = void;