aboutsummaryrefslogtreecommitdiff
path: root/rcc-legacy/tests/sysy_lvX/short_circuit1.sy
blob: 867d0340bb88631f40d6562fcc3f52966f08ab86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int f() {
  putint(0);
  return 0;
}

int g() {
  putint(1);
  return 1;
}

int main () {
  if ((f() && g()) || (!f() && g())) {
    return 1;
  }
  return 2;
}