[committed] Require target lto in several tests
Checks
Commit Message
Tested on hppa64-hp-hpux11.11 with lto disabled. Committed to trunk.
Dave
---
Require target lto in several tests
2024-01-16 John David Anglin <danglin@gcc.gnu.org>
gcc/testsuite/ChangeLog:
* gcc.dg/c23-tag-alias-2.c: Require target lto.
* gcc.dg/c23-tag-alias-3.c: Likewise.
* gcc.dg/gnu23-tag-alias-3.c: Likewise.
* gcc.dg/scantest-lto.c: Likewise.
@@ -1,4 +1,4 @@
-/* { dg-do run }
+/* { dg-do run { target lto } }
* { dg-options "-std=c23 -flto -O2" }
*/
@@ -1,4 +1,4 @@
-/* { dg-do run }
+/* { dg-do run { target lto } }
* { dg-options "-std=c23 -O2" }
*/
@@ -1,4 +1,4 @@
-/* { dg-do run }
+/* { dg-do run { target lto } }
* { dg-options "-std=gnu23 -flto -O2" }
*/
@@ -1,3 +1,4 @@
+/* { dg-do compile { target lto } }
/* { dg-options "-O2 -flto" } */
void foo ()