summaryrefslogtreecommitdiff
path: root/test/merge/dylib.wasm.combined.finalized
diff options
context:
space:
mode:
Diffstat (limited to 'test/merge/dylib.wasm.combined.finalized')
-rw-r--r--test/merge/dylib.wasm.combined.finalized91
1 files changed, 91 insertions, 0 deletions
diff --git a/test/merge/dylib.wasm.combined.finalized b/test/merge/dylib.wasm.combined.finalized
new file mode 100644
index 000000000..c3f64a0b5
--- /dev/null
+++ b/test/merge/dylib.wasm.combined.finalized
@@ -0,0 +1,91 @@
+(module
+ (type $0 (func (param i32 i32)))
+ (type $1 (func (param i32) (result i32)))
+ (type $2 (func (result i32)))
+ (type $3 (func))
+ (type $0$0 (func (param i32 i32)))
+ (type $1$0 (func (result i32)))
+ (type $2$0 (func))
+ (import "env" "memoryBase" (global $import$0 i32))
+ (import "env" "_puts" (func $import$1 (param i32) (result i32)))
+ (import "env" "memory" (memory $0 256))
+ (import "env" "table" (table 8 anyfunc))
+ (import "env" "tableBase" (global $import$4 i32))
+ (import "env" "memoryBase" (global $import$0$0 i32))
+ (import "env" "tableBase" (global $import$4$0 i32))
+ (global $global$0 (mut i32) (i32.const 0))
+ (global $global$1 (mut i32) (i32.const 0))
+ (global $global$2 i32 (i32.const 0))
+ (global $global$0$0 (mut i32) (i32.const 0))
+ (global $global$1$0 (mut i32) (i32.const 0))
+
+ (data (i32.const 1024) "hello, world!\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
+ (export "__post_instantiate" (func $__post_instantiate))
+ (export "_main" (func $_main))
+ (export "runPostSets" (func $runPostSets))
+ (export "_str" (global $global$2))
+ (export "_foo" (func $_foo))
+ (func $_main (type $2) (result i32)
+ (block $label$0 i32
+ (drop
+ (call $import$1
+ (i32.const 1024)
+ )
+ )
+ (i32.const 0)
+ )
+ )
+ (func $runPostSets (type $3)
+ (nop)
+ )
+ (func $__post_instantiate (type $3)
+ (call $__post_instantiate$0)
+ (block
+ (block $label$0
+ (set_global $global$0
+ (i32.add
+ (i32.const 1024)
+ (i32.const 16)
+ )
+ )
+ (set_global $global$1
+ (i32.add
+ (get_global $global$0)
+ (i32.const 32)
+ )
+ )
+ (call $runPostSets)
+ )
+ )
+ )
+ (func $_foo (type $1$0) (result i32)
+ (local $var$0 i32)
+ (block $label$0 i32
+ (set_local $var$0
+ (call $_main)
+ )
+ (get_local $var$0)
+ )
+ )
+ (func $runPostSets$0 (type $2$0)
+ (nop)
+ )
+ (func $__post_instantiate$0 (type $2$0)
+ (block $label$0
+ (set_global $global$0$0
+ (i32.add
+ (i32.const 1024)
+ (i32.const 48)
+ )
+ )
+ (set_global $global$1$0
+ (i32.add
+ (get_global $global$0$0)
+ (i32.const 10)
+ )
+ )
+ (call $runPostSets$0)
+ )
+ )
+ ;; custom section "dylink", size 2
+)