blob: bf7735185ad19b88f299e400aa40bf2c9f482b40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
(module
(type $v (func))
(table 1 1 anyfunc)
(elem (i32.const 0) $call-indirect)
(memory $0 256 256)
(data (i32.const 0) "\00\00\00\00\00\00\00\00\00\00nas\00\00\00aka yzkx waka wakm\00\00\00\00\00\00C")
(export "test1" (func $test1))
(export "test2" (func $test2))
(export "test3" (func $test3))
(func $test1 (type $v)
(nop)
)
(func $test2 (type $v)
(nop)
)
(func $test3 (type $v)
(nop)
)
(func $safe-to-call (type $v)
(drop
(i32.const 1)
)
(i32.store8
(i32.const 10)
(i32.const 110)
)
(i32.store8
(i32.const 33)
(i32.const 109)
)
)
(func $call-indirect (type $v)
(i32.store8
(i32.const 40)
(i32.const 67)
)
)
)
|