summaryrefslogtreecommitdiff
path: root/test/metadce/segments.wast
blob: 96e0088e8d3583e3aab1fc4d9bce6b356dcaab1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(module
 (import "env" "g1" (global $g1 i32))
 (import "env" "g2" (global $g2 i32))

 (table $tbl funcref)
 (elem (offset (global.get $g1)) funcref (ref.func $f))

 (memory 3)
 (data (offset (global.get $g2)) "xxx")

 (export "f" (func $f))
 (func $f (param i32)
  (call_indirect (param i32) (local.get 0) (i32.load8_u (i32.const 0))))
)