blob: 893fb0a337c41bab6816caccc0ec41e2606999a6 [file] [edit]
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; Check that the deprecated *_static instruction names are still parsed correctly.
;; RUN: wasm-opt %s -all -S -o - | filecheck %s
(module
;; CHECK: (type $none_=>_none (func))
;; CHECK: (type $struct (struct ))
(type $struct (struct))
;; CHECK: (func $test (type $none_=>_none)
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (ref.test $struct
;; CHECK-NEXT: (ref.null none)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (ref.cast null none
;; CHECK-NEXT: (ref.null none)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (ref.cast_nop none
;; CHECK-NEXT: (ref.null none)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
(func $test
(drop
(ref.test_static $struct
(ref.null none)
)
)
(drop
(ref.cast_static $struct
(ref.null none)
)
)
(drop
(ref.cast_nop_static $struct
(ref.null none)
)
)
)
)