Add minimal test for box/deref.
This commit is contained in:
parent
de9fc72cb4
commit
df5f8f3e37
@ -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
4
src/test/run-pass/box.rs
Normal file
@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
let @int x = @10;
|
||||
check ((*x) == 10);
|
||||
}
|
Loading…
Reference in New Issue
Block a user