1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
(module
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(import "env" "memory" (memory $0 256))
(import "env" "table" (table 0 funcref))
(export "foo" (func $foo-func))
(import "env" "bar" (func $bar-func))
(global $a-global i32 (i32.const 0))
(export "aglobal" (global $a-global))
(import "env" "bglobal" (global $b-global f64))
(func $foo-func
(drop (i32.const 1337))
(call $bar-func)
(drop (global.get $a-global))
(drop (global.get $b-global))
)
)
|