Add an XFAILed test for blocks that result in functions

This commit is contained in:
Brian Anderson 2011-04-07 22:12:55 -04:00
parent d2d42fd4c7
commit a4f8de382a

View File

@ -0,0 +1,15 @@
// xfail-boot
// xfail-stage0
fn test_fn() {
type t = fn() -> int;
fn ten() -> int {
ret 10;
}
let t res = { ten };
check (res() == 10);
}
fn main() {
test_fn();
}