aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/017_if_else.sy
blob: 1596d9306cf078e81553abe0f28fb728df556e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int main()
{
    int a = 1, b = 0, c = 0;

    if (a) {
        if (b)
            c = 58;
        else {
            c = 36;
        }
    } else
        c = 14;

    return c;
}