github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/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))