2018-03-04 18:52:12 +01:00
|
|
|
(module
|
|
|
|
(type $i (func (result i32)))
|
|
|
|
(type $v (func))
|
|
|
|
(global $void/u8Val1 (mut i32) (i32.const 1))
|
|
|
|
(global $void/u8Val2 (mut i32) (i32.const 255))
|
2018-05-14 16:55:55 +02:00
|
|
|
(global $HEAP_BASE i32 (i32.const 8))
|
2018-06-28 01:44:32 +02:00
|
|
|
(memory $0 0)
|
2018-03-04 18:52:12 +01:00
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
|
|
|
(func $void/anInt (; 0 ;) (type $i) (result i32)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 2)
|
2018-03-04 18:52:12 +01:00
|
|
|
)
|
|
|
|
(func $start (; 1 ;) (type $v)
|
|
|
|
(drop
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $void/anInt)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(i32.add
|
|
|
|
(get_global $void/u8Val1)
|
|
|
|
(get_global $void/u8Val2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|