]> gcc.gnu.org Git - gcc.git/commitdiff
testsuite: Require LTO for pr107557-[12].c
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 1 Jun 2023 19:16:27 +0000 (15:16 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Fri, 2 Jun 2023 13:30:48 +0000 (09:30 -0400)
pr107557-[12].c invoke -flto option but do not check that the target
support LTO.  This patch adds dg-require lto to the testcases.

* gcc.dg/pr107557-1.c: Require LTO support.
* gcc.dg/pr107557-2.c: Require LTO support.

Signed-off-by: David Edelsohn <dje.gcc@gmail.com>
gcc/testsuite/gcc.dg/pr107557-1.c
gcc/testsuite/gcc.dg/pr107557-2.c

index 88c248b656467aa719eae0065c82793f67900746..f14b784dbbffc09c9c95eed05c7bf1c68682e10e 100644 (file)
@@ -1,5 +1,6 @@
 /* PR107557
  * { dg-do compile }
+ * { dg-require-effective-target lto }
  * { dg-options "-flto -fsanitize=undefined -fexceptions -Wno-incompatible-pointer-types" }
  */
 
index 2d26bb0b16afc63e2fee4d680958c99efdda78d3..e680d045165f90d3709566a5a0a07450ca8ae6fe 100644 (file)
@@ -1,5 +1,6 @@
 /* PR107557
  * { dg-do compile }
+ * { dg-require-effective-target lto }
  * { dg-options "-flto -fsanitize=undefined -fexceptions -Wno-incompatible-pointer-types" }
  */
 
This page took 0.068108 seconds and 5 git commands to generate.