Skip to content

Commit

Permalink
null cont
Browse files Browse the repository at this point in the history
  • Loading branch information
linxuanm committed Oct 20, 2024
1 parent 72adc63 commit a3b6bbd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/regress/ext:stack-switching/cont_new_null.wast
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(module
(type $f1 (func))
(type $c1 (cont $f1))
(func (export "main") (result i32)
(cont.new $c1 (ref.null $f1))
drop
i32.const 42
)
)

(assert_trap (invoke "main") "null function reference")

0 comments on commit a3b6bbd

Please sign in to comment.