public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/gccgo] testsuite: Require LTO support for pr94426-1.C
@ 2020-07-12 17:31 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2020-07-12 17:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3b9e4bc95719288d17b37be3281f9ca4e4d42ebd

commit 3b9e4bc95719288d17b37be3281f9ca4e4d42ebd
Author: David Edelsohn <dje.gcc@gmail.com>
Date:   Thu Apr 23 22:36:10 2020 -0400

    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:
---
 gcc/testsuite/ChangeLog                       | 4 ++++
 gcc/testsuite/g++.dg/cpp0x/lambda/pr94426-1.C | 1 +
 2 files changed, 5 insertions(+)

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  <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 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 <bool> using Void = void;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-12 17:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-12 17:31 [gcc/devel/gccgo] testsuite: Require LTO support for pr94426-1.C Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).