summary refs log tree commit diff
path: root/src/test/run-pass/alt-phi.rs
blob: 11f0ff87a68236ed95e2b8bc25623cc8189f30fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


enum thing { a, b, c, }

fn foo(it: block(int)) { it(10); }

fn main() {
    let x = true;
    alt a {
      a { x = true; foo {|_i|} }
      b { x = false; }
      c { x = false; }
    }
}