aboutsummaryrefslogtreecommitdiff
path: root/rcc-legacy/tests/functional/22_if_test1.sy
blob: 1811e94448d86327402162eef039e70be042906c (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());
}