Add minimal test for box/deref.

This commit is contained in:
Graydon Hoare 2010-12-02 15:02:17 -08:00
parent de9fc72cb4
commit df5f8f3e37
2 changed files with 5 additions and 0 deletions

View File

@ -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 \

4
src/test/run-pass/box.rs Normal file
View File

@ -0,0 +1,4 @@
fn main() {
let @int x = @10;
check ((*x) == 10);
}