This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
testsuite bugfix
- To: gcc-patches at gcc dot gnu dot org
- Subject: testsuite bugfix
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 10 Jan 2000 18:12:59 -0700
- Reply-To: law at cygnus dot com
exeucte/990628-1.c assumes that integers are at least 32bits wide. tsk tsk.
* gcc.c-torture/execute/990628-1.c: Tweak to work on targets
with 16 bit integers.
Index: 990628-1.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/testsuite/gcc.c-torture/execute/990628-1.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 990628-1.c
*** 990628-1.c 1999/09/28 19:10:03 1.2
--- 990628-1.c 2000/01/11 01:14:18
*************** load_data() {
*** 48,54 ****
main()
{
load_data();
! if (data_ptr[0].dummy != 0x55555555)
abort ();
exit (0);
}
--- 48,56 ----
main()
{
load_data();
! if (sizeof (int) == 2 && data_ptr[0].dummy != 0x5555)
! abort ();
! else if (sizeof (int) > 2 && data_ptr[0].dummy != 0x55555555)
abort ();
exit (0);
}