struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20031020-1.c
blobe5f925d20b4833f52224a5536189d18369d1e38b
1 /*
2 20031020-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* PR target/12654
12 The Alpha backend tried to do a >= 1024 as (a - 1024) >= 0, which fails
13 for very large negative values. */
14 /* Origin: tg@swox.com */
16 #include <limits.h>
18 void
19 foo (long x)
21 if (x >= 1024)
22 ASSERT (0);
25 void
26 testTortureExecute (void)
28 foo (LONG_MIN);
29 foo (LONG_MIN + 10000);
30 return;