mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Pass layout to literal loading in dev backend
This commit is contained in:
parent
7174e25007
commit
54861ef5fa
5 changed files with 116 additions and 36 deletions
|
@ -1309,7 +1309,7 @@ fn num_to_float() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-dev"))]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn num_to_float_f64_to_f32() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -1327,25 +1327,25 @@ fn num_to_float_f64_to_f32() {
|
|||
);
|
||||
}
|
||||
|
||||
// #[test]
|
||||
// #[cfg(any(feature = "gen-dev"))]
|
||||
// fn num_to_float_f32_to_f64() {
|
||||
// assert_evals_to!(
|
||||
// indoc!(
|
||||
// r#"
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn num_to_float_f32_to_f64() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
|
||||
// f32 : F32
|
||||
// f32 = 9.0
|
||||
f32 : F32
|
||||
f32 = 9.0
|
||||
|
||||
// f64 : F64
|
||||
// f64 = Num.toFloat f32
|
||||
// f64
|
||||
// "#
|
||||
// ),
|
||||
// 9.0,
|
||||
// f64
|
||||
// );
|
||||
// }
|
||||
f64 : F64
|
||||
f64 = Num.toFloat f32
|
||||
f64
|
||||
"#
|
||||
),
|
||||
9.0,
|
||||
f64
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue