test: Adda test that all arms of an alt may result in fail

This commit is contained in:
Brian Anderson 2011-05-21 18:25:09 -04:00
parent 4504e23a82
commit 420d18a448

View File

@ -0,0 +1,20 @@
// When all branches of an alt expression result in fail, the entire
// alt expression results in fail.
fn main() {
auto x = alt (true) {
case (true) {
10
}
case (true) {
alt (true) {
case (true) {
fail
}
case (false) {
fail
}
}
}
};
}