This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: testsuite/gcc.dg/20000926-1.c assumes int >= 32 bits



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;
  };

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]