2018-07-18 23:49:32 +02:00
|
|
|
(module
|
|
|
|
(type $i (func (result i32)))
|
2018-09-17 01:48:35 +02:00
|
|
|
(type $v (func))
|
2018-09-13 23:10:49 +02:00
|
|
|
(type $FUNCSIG$i (func (result i32)))
|
2018-07-18 23:49:32 +02:00
|
|
|
(memory $0 0)
|
2018-10-11 08:49:08 +02:00
|
|
|
(table 1 anyfunc)
|
|
|
|
(elem (i32.const 0) $null)
|
2018-07-18 23:49:32 +02:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-07-18 23:49:32 +02:00
|
|
|
(export "test" (func $new-without-allocator/test))
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $~lib/memory/memory.allocate (; 0 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
2018-07-18 23:49:32 +02:00
|
|
|
(unreachable)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $new-without-allocator/test (; 1 ;) (; has Stack IR ;) (type $i) (result i32)
|
2018-07-18 23:49:32 +02:00
|
|
|
(drop
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $~lib/memory/memory.allocate)
|
2018-07-18 23:49:32 +02:00
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-09-17 01:48:35 +02:00
|
|
|
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
|
|
|
(nop)
|
|
|
|
)
|
2018-07-18 23:49:32 +02:00
|
|
|
)
|