struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-980701-1.c
blob03bd4c198cf7687b8421474ec335adc259ecb9c6
1 /*
2 980701-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 int ns_name_skip (unsigned char **x, unsigned char *y)
13 *x = 0;
14 (void)y;
15 return 0;
18 unsigned char a[2];
20 int dn_skipname(unsigned char *ptr, unsigned char *eom)
22 unsigned char *saveptr = ptr;
24 if (ns_name_skip(&ptr, eom) == -1)
25 return (-1);
26 return (ptr - saveptr);
29 void
30 testTortureExecute (void)
32 ASSERT(dn_skipname (&a[0], &a[1]) != 0);
33 return;