blob: 9838dd42d8c3f026eec9e6b0afc8e51db76f10f2 [file] [log] [blame] [edit]
(module
(type $none_=>_i32 (func (result i32)))
(type $none_=>_none (func))
(import "import" "import" (func $import (type $none_=>_none)))
(global $global1 (mut i32) (i32.const 11))
(global $global2 (mut i32) (i32.const 12))
(global $global3 (mut i32) (i32.const 13))
(global $global4 (mut i32) (i32.const 14))
(global $global5 (mut i32) (i32.const 15))
(export "test1" (func $test1_7))
(export "test3" (func $test3_8))
(export "test5" (func $test5_9))
(export "keepalive" (func $5))
(func $test1 (type $none_=>_none)
(global.set $global1
(i32.const 11)
)
)
(func $test2 (type $none_=>_none)
(global.set $global2
(i32.const 12)
)
)
(func $test3 (type $none_=>_i32) (result i32)
(global.set $global3
(i32.const 13)
)
(i32.const 42)
)
(func $test4 (type $none_=>_i32) (result i32)
(global.set $global4
(i32.const 14)
)
(i32.const 55)
)
(func $test5 (type $none_=>_i32) (result i32)
(global.set $global5
(i32.const 15)
)
(call $import)
(i32.const 100)
)
(func $5 (type $none_=>_i32) (result i32)
(call $test1)
(call $test2)
(drop
(call $test3)
)
(drop
(call $test4)
)
(drop
(call $test5)
)
(i32.add
(i32.add
(global.get $global1)
(global.get $global2)
)
(i32.add
(global.get $global3)
(i32.add
(global.get $global4)
(global.get $global5)
)
)
)
)
(func $test1_7 (type $none_=>_none)
(nop)
)
(func $test3_8 (type $none_=>_i32) (result i32)
(i32.const 42)
)
(func $test5_9 (type $none_=>_i32) (result i32)
(call $import)
(i32.const 100)
)
)