This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: testsuite/gcc.dg/20000926-1.c assumes int >= 32 bits
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: testsuite/gcc.dg/20000926-1.c assumes int >= 32 bits
- From: <lehotsky at tiac dot net>
- Date: Wed, 10 Jan 2001 14:29:27 -0500 (EST)
2001-01-10 Alan Lehotsky <lehotsky@tiac.net>
* gcc.dg/20000926-1.c: Parameterize for machines with 16-bit ints.
Index: 20000926-1.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.dg/20000926-1.c,v
retrieving revision 1.3
diff -c -p -d -r1.3 20000926-1.c
*** 20000926-1.c 2001/01/05 05:56:00 1.3
--- 20000926-1.c 2001/01/10 19:30:33
***************
*** 3,12 ****
/* { dg-do compile } */
/* { dg-options "" } */
struct PDATA
{
! unsigned int Dummy:32;
const char* PName;
};
--- 3,13 ----
/* { dg-do compile } */
/* { dg-options "" } */
+ #include <limits.h>
struct PDATA
{
! unsigned int Dummy:(sizeof(int)*CHAR_BIT);
const char* PName;
};