diff options
Diffstat (limited to 'test/lit/merge/fusing.wat.second')
-rw-r--r-- | test/lit/merge/fusing.wat.second | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lit/merge/fusing.wat.second b/test/lit/merge/fusing.wat.second index 387e57bb4..7ab9cc3f3 100644 --- a/test/lit/merge/fusing.wat.second +++ b/test/lit/merge/fusing.wat.second @@ -25,4 +25,16 @@ (i32.const 4) ) ) + + (import "first" "mem" (memory $other.mem 1)) + + (func $keepalive2 (export "keepalive2") (result i32) + ;; Load from the memory imported from the second module. + (i32.load $other.mem + (i32.const 10) + ) + ) + + (import "first" "exn" (tag $exn)) + (func $keepalive3 (export "keepalive3") (throw $exn)) ) |