This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A testcase patch


Hi,

Here is a small patch.


-- 
H.J. Lu (hjl@gnu.org)
----
Tue Mar 17 07:49:59 1998  H.J. Lu  (hjl@gnu.org)

	* gcc.dg/980312-1.c: Do link instead of compile.

Index: gcc.dg/980312-1.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/testsuite/gcc.dg/980312-1.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 980312-1.c
--- 980312-1.c	1998/03/19 16:20:12	1.1.1.2
+++ 980312-1.c	1998/03/19 16:35:44
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do link { target i?86-*-* } } */
 /* { dg-options "-O2 -march=pentiumpro" } */
 
 extern __inline  double
@@ -17,4 +17,8 @@
 tanh (double __x)
 {
   return  __expm1 (__x) * __sgn1 (-__x);
+}
+main ()
+{
+  return tanh (3.45) != 0;
 }
Index: gcc.dg/980313-1.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/testsuite/gcc.dg/980313-1.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 980313-1.c
--- 980313-1.c	1998/03/19 16:20:13	1.1.1.1
+++ 980313-1.c	1998/03/17 19:13:10
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* } } */
+/* { dg-do link { target i?86-*-* } } */
 /* { dg-options "-O2 -march=pentiumpro" } */
 
 extern __inline  double
@@ -18,4 +18,8 @@
 {
   register double __exm1 = __expm1 (__x);
   return __exm1 / (__exm1 + 2.0) * __sgn1 (-__x);
+}
+main ()
+{
+  return tanh (3.45) != 0;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]