Commit 15d92b36 by Janis Johnson Committed by Rask Ingemann Lambertsen

dump-noaddr.c: Reduce string length for targets where an "int" is less than 32 bits wide.

2007-07-25  Janis Johnson  <janis187@us.ibm.com>

	* gcc.c-torture/unsorted/dump-noaddr.c: Reduce string length for
	  targets where an "int" is less than 32 bits wide.

From-SVN: r126910
parent d23ebaf0
2007-07-25 Janis Johnson <janis187@us.ibm.com>
* gcc.c-torture/unsorted/dump-noaddr.c: Reduce string length for
targets where an "int" is less than 32 bits wide.
2007-07-25 Andreas Krebbel <krebbel1@de.ibm.com> 2007-07-25 Andreas Krebbel <krebbel1@de.ibm.com>
* gcc.dg/20070725-1.c: Testcase for revision 126876 added. * gcc.dg/20070725-1.c: Testcase for revision 126876 added.
#include <limits.h>
#if MASK & 1 #if MASK & 1
#define t11(x) x x x x x x x x x x x
#define t16(x) x x x x x x x x x x x x x x x x #define t16(x) x x x x x x x x x x x x x x x x
#if INT_MAX < 2147483647
#define M (sizeof (t11(t11(t16(t16(" "))))) - 1)
#else
#define M (sizeof (t16(t16(t16(t16(t16(" ")))))) - 1) #define M (sizeof (t16(t16(t16(t16(t16(" ")))))) - 1)
#endif #endif
#endif
#if MASK & 2 #if MASK & 2
#if INT_MAX < 2147483647
#define M 30976
#else
#define M 1048576 #define M 1048576
#endif #endif
#endif
typedef struct s { typedef struct s {
int c; int c;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment