Commit 77b4cc35 by Andy Hutchinson Committed by Andy Hutchinson

re PR testsuite/34889 (gcc.c-torture/execute/builtins/pr23484-chk.c fails on 16…

re PR testsuite/34889 (gcc.c-torture/execute/builtins/pr23484-chk.c fails on 16 bit integer platforms)

PR testsuite/34889
* gcc.c-torture/execute/builtins/pr23484-chk.c : Correct test for 16bit int target.

From-SVN: r135694
parent 5f7a8582
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.
* gcc.c-torture/execute/ieee/fp-cmp-1.c : Do not include signal.h if
SIGNAL_SUPPRESS.
......
......@@ -41,9 +41,15 @@ test1 (void)
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 ();
......
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