]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Require lto in three tests
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 6 Oct 2024 20:09:28 +0000 (16:09 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 6 Oct 2024 20:09:28 +0000 (16:09 -0400)
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.

gcc/testsuite/g++.dg/cpp0x/noexcept87.C
gcc/testsuite/g++.dg/ext/pragma-unroll-lambda-lto.C
gcc/testsuite/gcc.dg/enum-alias-3.c

index 339569d15ae53eeff32b391e0bddd38b68781540..bb7bb605532437425cae7c0298228d9fb1b05f13 100644 (file)
@@ -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>
index 64cdf90f34d3393b8ba1121eb6eba92d8b1cd583..ddf11730e338d95a3e362382605a7249bdde65ab 100644 (file)
@@ -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 } }
 
index 36a4f02a455247d04af193c0b13bfe2c70a471f1..322c8d82952cfc34bc63fccf6a25e6b56fa2f895 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-require-effective-target lto } */
 /* { dg-options "-O2 -flto" } */
 
 typedef int *A;