struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-980506-3.c
blob4b1c63163b0383dc9848151b890d50a17017cdd7
1 /*
2 980506-3.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 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) && !defined(__SDCC_pic14) // Lack of memory
12 #include <string.h>
14 unsigned char lookup_table [257];
16 static int
17 build_lookup (unsigned char * pattern)
19 int m;
21 m = strlen (pattern) - 1;
23 memset (lookup_table, ++m, 257);
24 return m;
26 #endif
28 void
29 testTortureExecute (void)
31 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) && !defined(__SDCC_pic14) // Lack of memory
32 if (build_lookup ("bind") != 4)
33 ASSERT (0);
34 else
35 return;
36 #endif