aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/alt-phi.rs
blob: 607a434a8c9cb07d3135c6d1cd724cbb15f89028 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
tag thing { a; b; c; }

iter foo() -> int {
  put 10;
}

fn main() {
  auto x = true;
    alt (a) {
        case (a) {
            x = true;
            for each (int i in foo()) {
            }
        }
        case (b) {
            x = false;
        }
        case (c) {
            x = false;
        }
    }
}