From 2490cd327514471c8e7fb56a9fba2c2304c04552 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 31 Mar 2011 20:17:43 -0400 Subject: [PATCH] Add a test for block expressions that have results. XFAILed. --- src/test/run-pass/expr-block-box.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/test/run-pass/expr-block-box.rs diff --git a/src/test/run-pass/expr-block-box.rs b/src/test/run-pass/expr-block-box.rs new file mode 100644 index 00000000000..b324994a8e8 --- /dev/null +++ b/src/test/run-pass/expr-block-box.rs @@ -0,0 +1,11 @@ +// xfail-boot +// xfail-stage0 +// -*- rust -*- + +fn main() { + auto x = { + @100 + }; + + check (*x == 100); +} \ No newline at end of file