assemblyscript/tests/compiler/namespace.untouched.wat

34 lines
954 B
Plaintext
Raw Normal View History

2017-12-13 23:24:13 +01:00
(module
(type $i (func (result i32)))
2017-12-13 23:24:13 +01:00
(type $v (func))
(memory $0 0)
(table $0 1 funcref)
(elem (i32.const 0) $null)
2017-12-13 23:24:13 +01:00
(global $namespace/Outer.Inner.aVar (mut i32) (i32.const 0))
(global $namespace/Outer.Inner.anEnum.ONE i32 (i32.const 1))
(global $namespace/Outer.Inner.anEnum.TWO i32 (i32.const 2))
2017-12-27 22:38:32 +01:00
(global $namespace/Joined.THREE i32 (i32.const 3))
(global $HEAP_BASE i32 (i32.const 8))
2017-12-13 23:24:13 +01:00
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $namespace/Outer.Inner.aFunc (; 0 ;) (type $i) (result i32)
global.get $namespace/Outer.Inner.aVar
2017-12-13 23:24:13 +01:00
)
2017-12-27 22:38:32 +01:00
(func $namespace/Joined.anotherFunc (; 1 ;) (type $i) (result i32)
global.get $namespace/Joined.THREE
2017-12-27 22:38:32 +01:00
)
(func $start (; 2 ;) (type $v)
global.get $namespace/Outer.Inner.aVar
drop
call $namespace/Outer.Inner.aFunc
drop
global.get $namespace/Outer.Inner.anEnum.ONE
drop
call $namespace/Joined.anotherFunc
drop
2017-12-13 23:24:13 +01:00
)
(func $null (; 3 ;) (type $v)
)
2017-12-13 23:24:13 +01:00
)