aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-12-02 15:02:17 -0800
committerGraydon Hoare <[email protected]>2010-12-02 15:02:17 -0800
commitdf5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088 (patch)
tree233e41a116b5726a54296d03a5bfa7cf13bcd16e
parentAdd test for non-exhaustive match failure. (diff)
downloadrust-df5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088.tar.xz
rust-df5f8f3e37ca0ebbd2d44d26abbab9dfedb6b088.zip
Add minimal test for box/deref.
-rw-r--r--src/Makefile1
-rw-r--r--src/test/run-pass/box.rs4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index c49e7b32..297739ff 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -471,6 +471,7 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
$(addprefix test/run-pass/, \
arith-0.rs \
arith-2.rs \
+ box.rs \
char.rs \
dead-code-one-arm-if.rs \
div-mod.rs \
diff --git a/src/test/run-pass/box.rs b/src/test/run-pass/box.rs
new file mode 100644
index 00000000..ffcd9ec5
--- /dev/null
+++ b/src/test/run-pass/box.rs
@@ -0,0 +1,4 @@
+fn main() {
+ let @int x = @10;
+ check ((*x) == 10);
+}