diff mbox series

testsuite: Require lto in three tests

Message ID ZwLvyUo_whHnphzv@mx3210.local
State New
Headers show
Series testsuite: Require lto in three tests | expand

Commit Message

John David Anglin Oct. 6, 2024, 8:15 p.m. UTC
Committed as obvious.

Dave
---

testsuite: Require lto in three tests

2024-10-06  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

	* g++.dg/cpp0x/noexcept87.C: Require lto.
	* g++.dg/ext/pragma-unroll-lambda-lto.C: Likewise.
	* gcc.dg/enum-alias-3.c: Likewise.
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/cpp0x/noexcept87.C b/gcc/testsuite/g++.dg/cpp0x/noexcept87.C
index 339569d15ae..bb7bb605532 100644
--- a/gcc/testsuite/g++.dg/cpp0x/noexcept87.C
+++ b/gcc/testsuite/g++.dg/cpp0x/noexcept87.C
@@ -1,5 +1,6 @@ 
 // PR c++/115223
 // { dg-do compile { target c++11 } }
+// { dg-require-effective-target lto }
 // { dg-additional-options -flto }
 
 template<class T>
diff --git a/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C b/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C
index 64cdf90f34d..ddf11730e33 100644
--- a/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C
+++ b/gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C
@@ -1,4 +1,5 @@ 
 // { dg-do link { target c++11 } }
+// { dg-require-effective-target lto }
 // { dg-options "-O2 -flto -fdump-rtl-loop2_unroll" }
 // { dg-skip-if "requires hosted libstdc++ for cstdlib rand" { ! hostedlib } }
 
diff --git a/gcc/testsuite/gcc.dg/enum-alias-3.c b/gcc/testsuite/gcc.dg/enum-alias-3.c
index 36a4f02a455..322c8d82952 100644
--- a/gcc/testsuite/gcc.dg/enum-alias-3.c
+++ b/gcc/testsuite/gcc.dg/enum-alias-3.c
@@ -1,4 +1,5 @@ 
 /* { dg-do run } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-O2 -flto" } */
 
 typedef int *A;