Add minimal test for box/deref.
This commit is contained in:
parent
de9fc72cb4
commit
df5f8f3e37
2 changed files with 5 additions and 0 deletions
|
@ -471,6 +471,7 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
|
||||||
$(addprefix test/run-pass/, \
|
$(addprefix test/run-pass/, \
|
||||||
arith-0.rs \
|
arith-0.rs \
|
||||||
arith-2.rs \
|
arith-2.rs \
|
||||||
|
box.rs \
|
||||||
char.rs \
|
char.rs \
|
||||||
dead-code-one-arm-if.rs \
|
dead-code-one-arm-if.rs \
|
||||||
div-mod.rs \
|
div-mod.rs \
|
||||||
|
|
4
src/test/run-pass/box.rs
Normal file
4
src/test/run-pass/box.rs
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
fn main() {
|
||||||
|
let @int x = @10;
|
||||||
|
check ((*x) == 10);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue