summaryrefslogtreecommitdiff
path: root/test/metadce/outside.wast.dced
blob: f5dc4e1e0b4ba32cd83039582dd72312c9fa0fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(module
 (type $0 (func))
 (import "env" "memory" (memory $0 256 256))
 (import "env" "table" (table $timport$0 10 10 funcref))
 (import "env" "g1" (global $from_segment i32))
 (import "env" "g2" (global $from_segment_2 i32))
 (import "env" "js_func" (func $a_js_func (type $0)))
 (global $__THREW__ (mut i32) (i32.const 0))
 (data $0 (i32.const 1024) "abcd")
 (data $1 (global.get $from_segment) "abcd")
 (elem $0 (global.get $from_segment_2) $table_func)
 (export "wasm_func" (func $a_wasm_func))
 (func $table_func (type $0)
 )
 (func $a_wasm_func (type $0)
  (call $a_js_func)
  (drop
   (global.get $__THREW__)
  )
 )
)