Skip to content

Commit

Permalink
Extend cont.wast testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
dhil committed Jul 31, 2024
1 parent b5d5ae2 commit e4dac2b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/core/cont.wast
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,19 @@
(i32.const 0) (i32.const 1) (i32.const 2) (i32.const 3)
(i32.const 4) (i32.const 5) (i32.const 6)
)

;; Subtyping
(module
(type $ft1 (func (param i32)))
(type $ct1 (sub (cont $ft1)))

(type $ft0 (func))
(type $ct0 (sub (cont $ft0)))

(func $test (param $x (ref $ct1))
(i32.const 123)
(local.get $x)
(cont.bind $ct1 $ct0)
(drop)
)
)

0 comments on commit e4dac2b

Please sign in to comment.