From: David Edelsohn Date: Fri, 24 Apr 2020 02:36:10 +0000 (-0400) Subject: testsuite: Require LTO support for pr94426-1.C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b9e4bc95719288d17b37be3281f9ca4e4d42ebd;p=gcc.git testsuite: Require LTO support for pr94426-1.C 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. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 86331cd1211..1457b6dca2f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-04-23 David Edelsohn + + * g++.dg/cpp0x/lambda/pr94426-1.C: Require LTO. + 2020-04-23 Martin Sebor PR driver/90983 diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C b/gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C index ae7cbf03091..620c9e3dc95 100644 --- a/gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C @@ -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 using Void = void;