This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for buggy test execute/20000224-1.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch for buggy test execute/20000224-1.c
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- Date: Sun, 5 Mar 2000 17:38:34 -0500 (EST)
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