aboutsummaryrefslogtreecommitdiff
path: root/rcc-legacy/tests/sysy_lvX/032_if3.sy
blob: b810290ddf3843c1b98648979289d6d4e2937fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// test if-else
int ifElse() {
  int a;
  a = 5;
  if (a == 5) {
    a = 25;
  } else {
    a = a * 2;
  }
  return a;
}


int main() {
  return ifElse();
}