Commit b511afdd by Andy Hutchinson

*gcc.c-torture/execute/pr40668.c: Correct for 16bit int size.

From-SVN: r153835
parent c36abf03
2009-11-02 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
*gcc.c-torture/execute/pr40668.c: Correct for 16bit int size.
2009-11-02 Dodji Seketeli <dodji@redhat.com>
PR c++/41856
......
#if (__SIZEOF_INT__ == 2)
#define TESTVALUE 0x1234
#else
#define TESTVALUE 0x12345678
#endif
static void
foo (unsigned int x, void *p)
{
......@@ -10,7 +15,7 @@ bar (int type, void *number)
switch (type)
{
case 1:
foo (0x12345678, number);
foo (TESTVALUE, number);
break;
case 7:
foo (0, number);
......@@ -29,7 +34,7 @@ main (void)
{
unsigned int x;
bar (1, &x);
if (x != 0x12345678)
if (x != TESTVALUE)
__builtin_abort ();
return 0;
}
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