2018-09-09 03:51:29 +02:00
|
|
|
(module
|
|
|
|
(type $v (func))
|
2018-09-13 23:10:49 +02:00
|
|
|
(type $FUNCSIG$i (func (result i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 0)
|
|
|
|
(table 1 anyfunc)
|
|
|
|
(elem (i32.const 0) $null)
|
2018-09-09 03:51:29 +02:00
|
|
|
(global $export/a i32 (i32.const 1))
|
|
|
|
(global $export/b i32 (i32.const 2))
|
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-09-09 03:51:29 +02:00
|
|
|
(export "a" (global $export/a))
|
|
|
|
(export "renamed_a" (global $export/a))
|
|
|
|
(export "renamed_b" (global $export/b))
|
|
|
|
(export "renamed_renamed_b" (global $export/b))
|
|
|
|
(start $start)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $export/add (; 0 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
|
|
(i32.const 3)
|
2018-09-09 03:51:29 +02:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $export/mul (; 1 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
|
|
(i32.const 12)
|
2018-09-09 03:51:29 +02:00
|
|
|
)
|
|
|
|
(func $start (; 2 ;) (; has Stack IR ;) (type $v)
|
|
|
|
(drop
|
2018-10-11 08:49:08 +02:00
|
|
|
(call $export/add)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $export/mul)
|
2018-09-09 03:51:29 +02:00
|
|
|
)
|
|
|
|
)
|
2018-09-17 01:48:35 +02:00
|
|
|
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
|
|
|
(nop)
|
|
|
|
)
|
2018-09-09 03:51:29 +02:00
|
|
|
)
|