[committed] Fix tests that need c99 complex support

Message ID c2e4c69b-77f7-bb0b-3c2e-b9b6d137948d@bell.net
State New
Headers show
Series
  • [committed] Fix tests that need c99 complex support
Related show

Commit Message

John David Anglin March 17, 2019, 6:29 p.m.
This patch fixes three tests that fail on hppa*-*-hpux* due to the lack of
c99 complex support.

Committed to trunk.

Dave
-- 
John David Anglin  dave.anglin@bell.net

2019-03-17  John David Anglin  <danglin@gcc.gnu.org>

	* gcc.dg/pr88074.c: Require c99_runtime.
	* gcc.dg/warn-abs-1.c: Likewise.
	* gfortran.dg/ISO_Fortran_binding_1.f90: Likewise.

Patch

Index: gcc.dg/pr88074.c
===================================================================
--- gcc.dg/pr88074.c	(revision 269717)
+++ gcc.dg/pr88074.c	(working copy)
@@ -1,4 +1,4 @@ 
-/* { dg-do compile } */
+/* { dg-do compile { target c99_runtime } } */
 /* { dg-options "-O" } */

 #include <complex.h>
Index: gcc.dg/warn-abs-1.c
===================================================================
--- gcc.dg/warn-abs-1.c	(revision 269717)
+++ gcc.dg/warn-abs-1.c	(working copy)
@@ -1,4 +1,4 @@ 
-/* { dg-do compile } */
+/* { dg-do compile { target c99_runtime } } */
 /* { dg-options "-Wabsolute-value" } */

 #include <stdlib.h>
Index: gfortran.dg/ISO_Fortran_binding_1.f90
===================================================================
--- gfortran.dg/ISO_Fortran_binding_1.f90	(revision 269717)
+++ gfortran.dg/ISO_Fortran_binding_1.f90	(working copy)
@@ -1,4 +1,4 @@ 
-! { dg-do run }
+! { dg-do run { target c99_runtime } }
 ! { dg-additional-sources ISO_Fortran_binding_1.c }
 !
 ! Test F2008 18.5: ISO_Fortran_binding.h functions.