OSDN Git Service

* gcc.dg/large-size-array-3.c: Correct test case (portability).
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / large-size-array-3.c
index 954e28e..f2434b9 100644 (file)
@@ -1,9 +1,10 @@
 /* { dg-do compile } */
+#include <limits.h>
 
 #ifdef __LP64__
-#define DIM UINT_MAX>>1
+#define DIM (UINT_MAX>>1)+1
 #else
-#define DIM 65536
+#define DIM (USHRT_MAX>>)+1
 #endif
 
 int