struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-3455.c
blobc5663edbca54fbe8a051458947ae2b6b53da3249
1 /* bug-3523.c
2 An issue in live-range analysis that resulted in a segfault when the first basic block in the successor list was empty.
3 */
5 #include <testfwk.h>
7 // Based on code by "Under4Mhz" licensed under GPL 2.0 or later
8 #include <stdlib.h>
10 void t() {
11 //calculate width of the
12 int w = abs(8);
13 int var;
14 for(int i = 0; i < 10; i++)
16 var = 256 * (-w / 2) / 256;
20 void
21 testBug (void)
23 t ();