aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/035_while2.sy
blob: 5491ddb05f1feea33e92bbeda39dce17a2a4db20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//test while-while
int main(){
    int a, b;
    a = 5;
    b = 10;
    while(a < 10){
        while(b < 15){
            b = b + 1;
        }
        a = a + 1;
    }
    return b;
}