Pass layout to literal loading in dev backend

This commit is contained in:
Brendan Hansknecht 2021-12-07 14:31:13 -08:00
parent 7174e25007
commit 54861ef5fa
5 changed files with 116 additions and 36 deletions

View file

@ -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"))]