struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20050104-1.c
blobd80a402ee1a2702b8f9c484c434e7049569fc9bb
1 /*
2 20050104-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #include <limits.h>
13 // Some ports do not support long long yet.
14 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
16 /* PR tree-optimization/19060 */
18 static
19 long long min ()
21 return -LLONG_MAX - 1;
24 void
25 foo (long long j)
27 if (j > 10 || j < min ())
28 ASSERT (0);
30 #endif
32 void
33 testTortureExecute (void)
35 // Some ports do not support long long yet.
36 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
37 foo (10);
38 return;
39 #endif