* as/hc08/lkaomf51.c (OutputName),
[fw/sdcc] / support / regression / tests / bug1496419.c
1 /*\r
2    bug1057979.c\r
3 */\r
4 \r
5 #include <testfwk.h>\r
6 \r
7 typedef struct _NODE\r
8 {\r
9   const struct _NODE * enter;\r
10   const struct _NODE * down;\r
11 }NODE;\r
12 \r
13 const NODE node1 = {NULL, NULL};\r
14 \r
15 //sdcc loops allocating space for new symbols node1 and\r
16 //zzz until there is no more memory, then segfaults\r
17 //\r
18 //The reference to zzz inside the declaration of zzz\r
19 //triggers a loop allocating space for symbols node1\r
20 //and zzz\r
21 const NODE zzz = {&node1, &zzz};\r