Add an XFAILed test for if expressions resulting in boxes

This commit is contained in:
Brian Anderson 2011-03-27 19:59:33 -04:00 committed by Graydon Hoare
parent aced4ce145
commit 38d5453584
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// xfail-boot
// xfail-stage0
// -*- rust -*-
// Tests for if as expressions returning boxed types
fn test_box() {
auto res = if (true) { @100 } else { @101 };
check (*res == 100);
}
fn main() {
test_box();
}