mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
enable empty list test and fix list init
This commit is contained in:
parent
cfe1d3d893
commit
8b672a3fcd
2 changed files with 6 additions and 6 deletions
|
@ -632,9 +632,9 @@ impl<
|
|||
// TODO: This can be optimized. We just need to add the ability to set a stack value to zero or load an immediate to the stack.
|
||||
self.with_tmp_general_reg(buf, |_storage_manager, buf, reg| {
|
||||
ASM::mov_reg64_imm64(buf, reg, 0);
|
||||
ASM::mov_reg64_base32(buf, reg, base_offset);
|
||||
ASM::mov_reg64_base32(buf, reg, base_offset + 8);
|
||||
ASM::mov_reg64_base32(buf, reg, base_offset + 16);
|
||||
ASM::mov_base32_reg64(buf, base_offset, reg);
|
||||
ASM::mov_base32_reg64(buf, base_offset + 8, reg);
|
||||
ASM::mov_base32_reg64(buf, base_offset + 16, reg);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#[cfg(feature = "gen-llvm")]
|
||||
use crate::helpers::llvm::assert_evals_to;
|
||||
|
||||
// #[cfg(feature = "gen-dev")]
|
||||
// use crate::helpers::dev::assert_evals_to;
|
||||
#[cfg(feature = "gen-dev")]
|
||||
use crate::helpers::dev::assert_evals_to;
|
||||
|
||||
#[cfg(feature = "gen-wasm")]
|
||||
use crate::helpers::wasm::assert_evals_to;
|
||||
|
@ -25,7 +25,7 @@ fn roc_list_construction() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn empty_list_literal() {
|
||||
assert_evals_to!("[]", RocList::<i64>::from_slice(&[]), RocList<i64>);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue