struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20030221-1.c
bloba9cb0ebbb97cac3dd85ea97d2ca3b5581bb7e121
1 /*
2 20030221-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 #include <string.h>
13 /* PR optimization/8613 */
14 /* Contributed by Glen Nakamura */
16 void
17 testTortureExecute (void)
19 char buf[16] = "1234567890";
20 char *p = buf;
22 *p++ = (char) strlen (buf);
24 if ((buf[0] != 10) || (p - buf != 1))
25 ASSERT (0);
27 return;