diff options
Diffstat (limited to 'test/spec/ref_null.wast')
-rw-r--r-- | test/spec/ref_null.wast | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/spec/ref_null.wast b/test/spec/ref_null.wast new file mode 100644 index 000000000..96cac314a --- /dev/null +++ b/test/spec/ref_null.wast @@ -0,0 +1,13 @@ +(module + (func (export "anyref") (result anyref) (ref.null)) + (func (export "funcref") (result funcref) (ref.null)) + (func (export "nullref") (result nullref) (ref.null)) + + (global anyref (ref.null)) + (global funcref (ref.null)) + (global nullref (ref.null)) +) + +(assert_return (invoke "anyref") (ref.null)) +(assert_return (invoke "funcref") (ref.null)) +(assert_return (invoke "nullref") (ref.null)) |