wasm: Get RC reset/reuse working correctly

This commit is contained in:
Brian Carroll 2022-08-05 18:29:36 +01:00
parent e71a6da62d
commit aa0e9e8d31
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
3 changed files with 86 additions and 22 deletions

View file

@ -2205,9 +2205,10 @@ fn nullable_eval_cfold() {
}
#[test]
#[cfg(any(feature = "gen-llvm"))]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn nested_switch() {
// exposed bug with passing the right symbol/layout down into switch branch generation
// This is also the only test_gen test that exercises Reset/Reuse (as of Aug 2022)
assert_evals_to!(
indoc!(
r#"