summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-3455.c
blob: c5663edbca54fbe8a051458947ae2b6b53da3249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* bug-3523.c
   An issue in live-range analysis that resulted in a segfault when the first basic block in the successor list was empty.
 */

#include <testfwk.h>

// Based on code by "Under4Mhz" licensed under GPL 2.0 or later
#include <stdlib.h>

void t() {
    //calculate width of the 
    int w = abs(8);
    int var;
    for(int i = 0; i < 10; i++)
    {
        var = 256 * (-w / 2) / 256;
    }
}

void
testBug (void)
{
	t ();
}