2018-03-20 12:02:05 +01:00
|
|
|
(module
|
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
|
|
(type $v (func))
|
2018-11-08 08:04:24 +01:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-03-20 12:02:05 +01:00
|
|
|
(memory $0 1)
|
2018-05-14 16:55:55 +02:00
|
|
|
(data (i32.const 8) "\0e\00\00\00s\00t\00a\00t\00i\00c\00-\00t\00h\00i\00s\00.\00t\00s")
|
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)
|
|
|
|
(global $static-this/Foo.bar (mut i32) (i32.const 42))
|
2018-03-20 12:02:05 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-03-20 12:02:05 +01:00
|
|
|
(start $start)
|
2018-11-09 12:28:10 +01:00
|
|
|
(func $start (; 1 ;) (type $v)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $static-this/Foo.bar
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 42
|
|
|
|
i32.ne
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 8
|
|
|
|
i32.const 8
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2018-03-20 12:02:05 +01:00
|
|
|
)
|
2018-11-09 12:28:10 +01:00
|
|
|
(func $null (; 2 ;) (type $v)
|
2018-11-08 08:04:24 +01:00
|
|
|
nop
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2018-03-20 12:02:05 +01:00
|
|
|
)
|