aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/break-uninit2.rs
blob: 45d758f61943d4cba9fa1ec995114c8e7ee46bf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// xfail-boot
// error-pattern:Unsatisfied precondition

fn foo() -> int {
  let int x;
  let int i;

  do {
    i = 0;
    break;
    x = 0;
  } while (1 != 2);

  log(x);

  ret 17;
}

fn main() {
  log(foo());
}