Patch for buggy test execute/20000224-1.c

Hans-Peter Nilsson hp@bitrange.com
Sun Mar 5 14:38:00 GMT 2000


This failing (on MMIX, alpha, probably everywhere) test looks strange.
Surely the return-value-test is at fault?  I did a cvs diff -cp5 so you'd
see the only return-point of test, which returns 1.

Ok to commit?

Sun Mar  5 23:25:12 2000  Hans-Peter Nilsson  <hp@bitrange.com>

	* execute/20000224-1.c (main): Expected return-value is	1, not
	zero.

Index: 20000224-1.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.c-torture/execute/20000224-1.c,v
retrieving revision 1.1
diff -p -c -c -p -5 -r1.1 20000224-1.c
*** 20000224-1.c	2000/03/01 22:42:36	1.1
--- 20000224-1.c	2000/03/05 22:20:57
*************** int test (void)
*** 18,28 ****
      return 1;
  }
  
  int main()
  {
!     if (test ())
        abort ();
      
      exit (0);
  }
  
--- 18,28 ----
      return 1;
  }
  
  int main()
  {
!     if (test () != 1)
        abort ();
      
      exit (0);
  }
  
brgds, H-P




More information about the Gcc-patches mailing list