PR testsuite/34889
* gcc.c-torture/execute/builtins/pr23484-chk.c : Correct test for 16bit int target.
From-SVN: r135694
+2008-05-20 Andy Hutchinson <hutchinsonandy@aim.com>
+
+ PR testsuite/34889
+ * gcc.c-torture/execute/builtins/pr23484-chk.c : Correct test for
+ 16bit int target.
+
2008-05-20 Andy Hutchinson <hutchinsonandy@aim.com>
* gcc.dg/tree-ssa/ifc-20040816-1.c : signal.h not required.
abort ();
memset (buf, 'L', sizeof (buf));
+#if(__SIZEOF_INT__ >= 4)
if (snprintf (buf, l1 ? sizeof (buf) : 4, "%d", l1 + 65536) != 5
|| memcmp (buf, "655\0LLLL", 8))
abort ();
+#else
+ if (snprintf (buf, l1 ? sizeof (buf) : 4, "%d", l1 + 32700) != 5
+ || memcmp (buf, "327\0LLLL", 8))
+ abort ();
+#endif
if (chk_calls)
abort ();