diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2020-04-23 22:36:10 -0400 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 2020-04-23 22:39:49 -0400 |
commit | 3b9e4bc95719288d17b37be3281f9ca4e4d42ebd (patch) | |
tree | af952f567f9a9f75685f85f0506a40f0410ca90e | |
parent | cd5dc922eac1265e25fd749a21b9cd7e4016d124 (diff) | |
download | gcc-3b9e4bc95719288d17b37be3281f9ca4e4d42ebd.zip gcc-3b9e4bc95719288d17b37be3281f9ca4e4d42ebd.tar.gz gcc-3b9e4bc95719288d17b37be3281f9ca4e4d42ebd.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 86331cd..1457b6d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C b/gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C index ae7cbf0..620c9e3 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 <bool> using Void = void; |