2018-03-04 18:52:12 +01:00
|
|
|
(module
|
|
|
|
(type $i (func (result i32)))
|
2019-02-07 15:26:26 +01:00
|
|
|
(type $_ (func))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 0)
|
2019-02-05 17:12:10 +01:00
|
|
|
(table $0 1 funcref)
|
2018-10-11 08:49:08 +02:00
|
|
|
(elem (i32.const 0) $null)
|
2018-03-04 18:52:12 +01:00
|
|
|
(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-03-04 18:52:12 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-03-04 18:52:12 +01:00
|
|
|
(start $start)
|
|
|
|
(func $void/anInt (; 0 ;) (type $i) (result i32)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
2018-03-04 18:52:12 +01:00
|
|
|
)
|
2019-02-07 15:26:26 +01:00
|
|
|
(func $start (; 1 ;) (type $_)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
drop
|
|
|
|
call $void/anInt
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $void/u8Val1
|
|
|
|
global.get $void/u8Val2
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
|
|
|
drop
|
2018-03-04 18:52:12 +01:00
|
|
|
)
|
2019-02-07 15:26:26 +01:00
|
|
|
(func $null (; 2 ;) (type $_)
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2018-03-04 18:52:12 +01:00
|
|
|
)
|