mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 07:22:21 +00:00
19 lines
481 B
Plaintext
19 lines
481 B
Plaintext
(module
|
|
(type $i (func (result i32)))
|
|
(type $ii (func (param i32) (result i32)))
|
|
(memory $0 0)
|
|
(export "memory" (memory $0))
|
|
(export "test" (func $new-without-allocator/test))
|
|
(func $~lib/memory/memory.allocate (; 0 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(unreachable)
|
|
)
|
|
(func $new-without-allocator/test (; 1 ;) (; has Stack IR ;) (type $i) (result i32)
|
|
(drop
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|