blob: 370faec16cc2fc424d19ff156138c0cd0231b6b8 [file] [log] [blame] [edit]
(module
(type $struct (struct (field i32)))
(type $none_=>_i32 (func (result i32)))
(global $ctor-eval$global_4 (ref $struct) (struct.new $struct
(i32.const 9999)
))
(global $global3 (ref $struct) (global.get $ctor-eval$global_4))
(global $global2 (mut (ref null $struct)) (global.get $ctor-eval$global_4))
(global $ctor-eval$global (ref $struct) (struct.new $struct
(i32.const 1337)
))
(global $global1 (ref any) (global.get $ctor-eval$global))
(export "keepalive" (func $1))
(func $1 (type $none_=>_i32) (result i32)
(select
(struct.get $struct 0
(ref.cast $struct
(global.get $global1)
)
)
(struct.get $struct 0
(global.get $global2)
)
(struct.get $struct 0
(global.get $global3)
)
)
)
)