1 /* Simple little program that just generates a core dump from inside some
2 nested function calls. Keep this as self contained as possible, I.E.
3 use no environment resources other than possibly abort(). */
16 #define ABORT {char *invalid = 0; *invalid = 0xFF;}
19 /* Don't make these automatic vars or we will have to walk back up the
20 stack to access them. */
25 int coremaker_data
= 1; /* In Data section */
26 int coremaker_bss
; /* In BSS section */
28 const int coremaker_ro
= 201; /* In Read-Only Data section */
33 int coremaker_local
[5];
37 /* Make sure that coremaker_local doesn't get optimized away. */
38 for (i
= 0; i
< 5; i
++)
39 coremaker_local
[i
] = i
;
41 for (i
= 0; i
< 5; i
++)
42 coremaker_bss
+= coremaker_local
[i
];
43 coremaker_data
= coremaker_ro
+ 1;
This page took 0.03145 seconds and 4 git commands to generate.