2018-03-20 12:02:05 +01:00
|
|
|
(module
|
2019-03-01 00:01:23 +01:00
|
|
|
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
|
|
|
(type $FUNCSIG$v (func))
|
2019-06-05 23:15:39 +02:00
|
|
|
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
|
2018-03-20 12:02:05 +01:00
|
|
|
(memory $0 1)
|
2019-06-05 23:15:39 +02:00
|
|
|
(data (i32.const 8) "\1c\00\00\00\01\00\00\00\01\00\00\00\1c\00\00\00s\00t\00a\00t\00i\00c\00-\00t\00h\00i\00s\00.\00t\00s")
|
|
|
|
(global $static-this/Foo.bar i32 (i32.const 42))
|
2018-03-20 12:02:05 +01:00
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start (; 1 ;) (type $FUNCSIG$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
|
2019-06-05 23:15:39 +02:00
|
|
|
i32.const 24
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
call $~lib/builtins/abort
|
2018-11-08 08:04:24 +01:00
|
|
|
unreachable
|
|
|
|
end
|
2018-03-20 12:02:05 +01:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $null (; 2 ;) (type $FUNCSIG$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
|
|
|
)
|