blob: 0171f4840c30331b829944e8b11047390037ec84 [file] [log] [blame] [edit]
;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited.
;; RUN: wasm-opt %s -all --roundtrip -S -o - | filecheck %s --check-prefix=RTRIP
(module
;; RTRIP: (type $t (struct (field waitqueue)))
(type $t (struct (field waitqueue)))
;; RTRIP: (global $g (ref $t) (struct.new $t
;; RTRIP-NEXT: (i32.const 0)
;; RTRIP-NEXT: ))
(global $g (ref $t) (struct.new $t (i32.const 0)))
;; RTRIP: (func $f (type $1) (result i32)
;; RTRIP-NEXT: (struct.wait $t 0
;; RTRIP-NEXT: (global.get $g)
;; RTRIP-NEXT: (i32.const 0)
;; RTRIP-NEXT: (i64.const 0)
;; RTRIP-NEXT: )
;; RTRIP-NEXT: )
(func $f (result i32)
(struct.wait $t 0 (global.get $g) (i32.const 0) (i64.const 0))
)
)