aboutsummaryrefslogtreecommitdiff
path: root/rcc-legacy/tests/sysy_lvX/047_and.sy
blob: 6f8e97f9ce8baef420cf8050ff5ac4982abc8d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//sample function of and
int main(){
    int a, b;
    a = 3 * 2 + 1;
    if (a > 6 && a < 8) {
        b = 1;
    }
    else {
        b = 0;
    }
    return a + b;
}