Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions test/core/stack-switching/cont.wast
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,27 @@
(type $c2 (cont $f2))
)

(assert_invalid
(module
(rec
(type $fA (func))
(type $fB (func))
(type $cont (cont $fA))
)
(elem declare func $b)
(func $a
(drop
(cont.new $cont ;; expects a ref of $fA, not $fB
(ref.func $b)
)
)
)
(func $b (type $fB)
)
)
"type mismatch")


;; Test resume_throw used on the very first execution of a continuation (so the
;; code in the continuation function is never reached).
(module
Expand Down