make function names unique by adding layout hash

This commit is contained in:
Folkert 2023-04-09 18:18:39 +02:00
parent c36a82d134
commit d4bb5053b8
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 85 additions and 22 deletions

View file

@ -1196,7 +1196,7 @@ fn monomorphized_applied_tag() {
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn monomorphized_tag_with_polymorphic_arg() {
assert_evals_to!(
indoc!(
@ -1219,17 +1219,17 @@ fn monomorphized_tag_with_polymorphic_arg() {
Wrapped A -> 5
Wrapped B -> 7
useWrap1 (wrap {}) * useWrap2 (wrap {})
if Bool.true then useWrap1 (wrap {}) else useWrap2 (wrap {})
"#
),
10,
2,
u8
)
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn monomorphized_tag_with_polymorphic_arg_and_monomorphic_arg() {
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn monomorphized_tag_with_polymorphic_and_monomorphic_arg() {
assert_evals_to!(
indoc!(
r#"