va-arg-25.c: Enable only if INT_MAX == 2147483647.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 2 Nov 2003 13:09:37 +0000 (13:09 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 2 Nov 2003 13:09:37 +0000 (13:09 +0000)
* gcc.c-torture/execute/va-arg-25.c: Enable only if INT_MAX ==
2147483647.

From-SVN: r73199

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/va-arg-25.c

index be2cc850cf2e36c12c403d865388babc43c82d2d..8bfe899808a7edd410c6bab8bf4cc7047493a7cf 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-02  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * gcc.c-torture/execute/va-arg-25.c: Enable only if INT_MAX ==
+       2147483647.
+
 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.dg/20031102-1.c: New test.
index d90d288aba061c07ed3e6cf96116b1998d6448aa..b9f3a1b1237fe86ba2010a5d3c91141c3f3164c5 100644 (file)
@@ -1,6 +1,7 @@
 /* Varargs and vectors!  */
 
 #include <stdarg.h>
+#include <limits.h>
 
 #define vector __attribute__((vector_size(16)))
 
@@ -27,8 +28,10 @@ void foo(int a, ...)
 
 int main(void)
 {
+#if INT_MAX == 2147483647
   foo (1, (vector unsigned int){10,11,12,13}, 2,
        (vector unsigned int){20,21,22,23});
+#endif
   return 0;
 }