struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr28651.c
blobc6a234b2b848451bb04234a344b5ed4f83abeb8d
1 /*
2 pr28651.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 #include <limits.h>
13 int
14 foo (unsigned int u)
16 return (int)(u + 4) < (int)u;
19 void
20 testTortureExecute (void)
22 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5 && __GNUC_MINOR__ < 1))
23 unsigned int u = INT_MAX;
25 if (foo (u) == 0)
26 ASSERT (0);
27 return;
28 #endif