assemblyscript/tests/compiler/typealias.optimized.wat
dcodeIO 16d1a833dd Always add a null function at table index zero
This allows function references (a table index internally) to be nullable
2018-09-17 01:48:35 +02:00

14 lines
332 B
Plaintext

(module
(type $ii (func (param i32) (result i32)))
(type $v (func))
(memory $0 0)
(export "memory" (memory $0))
(export "alias" (func $typealias/alias))
(func $typealias/alias (; 0 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
(get_local $0)
)
(func $start (; 1 ;) (; has Stack IR ;) (type $v)
(nop)
)
)