github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/internal/integration_test/spectest/v2/testdata/ref_null.wast (about)

     1  (module
     2    (func (export "externref") (result externref) (ref.null extern))
     3    (func (export "funcref") (result funcref) (ref.null func))
     4  
     5    (global externref (ref.null extern))
     6    (global funcref (ref.null func))
     7  )
     8  
     9  (assert_return (invoke "externref") (ref.null extern))
    10  (assert_return (invoke "funcref") (ref.null func))