aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/lazy-init.rs
blob: 986dbf205398eb3e9bbfc1f76cc8d488722b3449 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn foo(int x) {
  log x;
}

fn main() {
  let int x;
  if (1 > 2) {
    x = 12;
  } else {
    x = 10;
  }
  foo(x);
}