rust/src/test/run-pass/alt-phi.rs

23 lines
317 B
Rust
Raw Normal View History

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