[testsuite] (checked in) fix gcc.dg/dfp/operator-cond.c

Janis Johnson janis187@us.ibm.com
Tue Mar 27 23:30:00 GMT 2007


Fix a test that never initialized values but usually happened to pass,
even with a typo in a comparison.  Checked in on mainline.

2007-03-27  Janis Johnson  <janis187@us.ibm.com>

	* gcc.dg/dfp/operator-cond.c: Call init, fix typo.	

Index: gcc/testsuite/gcc.dg/dfp/operator-cond.c
===================================================================
--- gcc/testsuite/gcc.dg/dfp/operator-cond.c	(revision 123081)
+++ gcc/testsuite/gcc.dg/dfp/operator-cond.c	(working copy)
@@ -39,12 +39,14 @@
 int
 main ()
 {
+  init ();
+
   /* Operands and the result are all the same decimal float type.  */
   d32a = yes ? d32b : d32c;
   if (d32a != d32b)
     FAILURE
   d64a = no ? d64b : d64c;
-  if (d64a != d64b)
+  if (d64a != d64c)
     FAILURE
   d128a = yes ? d128b : d128c;
   if (d128a != d128b)



More information about the Gcc-patches mailing list