Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20040331-1.c
blobd98cb197bf7542fd981ad44df68f90d377be016f
1 /*
2 20040331-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 /* PR c++/14755 */
15 void
16 testTortureExecute (void)
18 #if INT_MAX >= 2147483647
19 struct { int count: 31; } s = { 0 };
20 while (s.count--)
21 ASSERT (0);
22 #elif INT_MAX >= 32767
23 struct { int count: 15; } s = { 0 };
24 while (s.count--)
25 ASSERT (0);
26 #else
27 /* Don't bother because __INT_MAX__ is too small. */
28 #endif
29 return;