struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20021219-1.c
blobc2a8578e0f50a022ba85058fb41e4279b136d259
1 /*
2 20021219-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 #pragma disable_warning 85
13 /* PR optimization/8988 */
14 /* Contributed by Kevin Easton */
16 void foo(char *p1, char **p2)
19 void testTortureExecute(void)
21 char str[] = "foo { xx }";
22 char *ptr = str + 5;
24 foo(ptr, &ptr);
26 while (*ptr && (*ptr == 13 || *ptr == 32))
27 ptr++;
29 return;