diff options
Diffstat (limited to 'test/passes/simplify-globals_all-features_fuzz-exec.wast')
-rw-r--r-- | test/passes/simplify-globals_all-features_fuzz-exec.wast | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/passes/simplify-globals_all-features_fuzz-exec.wast b/test/passes/simplify-globals_all-features_fuzz-exec.wast new file mode 100644 index 000000000..ff2200ea9 --- /dev/null +++ b/test/passes/simplify-globals_all-features_fuzz-exec.wast @@ -0,0 +1,14 @@ +(module + (global $global$0 (mut funcref) (ref.null func)) + (func $0 (param $0 f32) (param $1 i31ref) (param $2 i64) (param $3 f64) (param $4 funcref) + (nop) + ) + (func "export" (result funcref) + ;; this set's value will be applied to the get right after it. we should carry + ;; over the specific typed function reference type properly while doing so. + (global.set $global$0 + (ref.func $0) + ) + (global.get $global$0) + ) +) |