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


tag 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; }
    }
}