struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20100827-1.c
blobd531031991b9d29cabd7056d86b7980640c7e2ba
1 /*
2 20100827-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 int
12 foo (char *p)
14 int h = 0;
17 if (*p == '\0')
18 break;
19 ++h;
20 if (p == 0)
21 ASSERT (0);
22 ++p;
24 while (1);
25 return h;
28 void
29 testTortureExecute (void)
31 if (foo("a") != 1)
32 ASSERT (0);
33 return;