summaryrefslogtreecommitdiff
path: root/test/spec/ref_null.wast
blob: b88b0888fd8d11b3df053b0d005e97611b27c917 (plain)
1
2
3
4
5
6
7
8
9
10
(module
  (func (export "externref") (result externref) (ref.null extern))
  (func (export "funcref") (result funcref) (ref.null func))

  (global externref (ref.null extern))
  (global funcref (ref.null func))
)

(assert_return (invoke "externref") (ref.null extern))
(assert_return (invoke "funcref") (ref.null func))