struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr66940.c
blob2da23aba111651fa4303d2c4ee9272e5842d15ee
1 /*
2 pr66940.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 long long
8 foo (long long ival)
10 if (ival <= 0)
11 return -0x7fffffffffffffffL - 1;
13 return 0x7fffffffffffffffL;
16 void
17 testTortureExecute (void)
19 ASSERT (foo (-1) == (-0x7fffffffffffffffL - 1));
20 ASSERT (foo (1) == 0x7fffffffffffffffL);
22 ASSERT (foo (-1) != (-0x7fffffff - 1));
24 return;