Lines Matching refs:null
8 (global $g (mut (ref null $ty)) (ref.null $ty))
28 (func $get-f32 (param (ref null $ty)) (result f32)
35 (func $get-s-i8 (param (ref null $ty)) (result i32)
42 (func $get-u-i8 (param (ref null $ty)) (result i32)
49 (func $get-anyref (param (ref null $ty)) (result anyref)
58 (func $set-f32 (param (ref null $ty) f32)
65 (func $set-i8 (param (ref null $ty) i32)
72 (func $set-anyref (param (ref null $ty) anyref)
79 (func (export "set-anyref-non-null")
84 (assert_return (invoke "new" (f32.const 1) (i32.const -1) (ref.null any)))
88 (assert_return (invoke "get-anyref") (ref.null any))
94 (assert_return (invoke "get-anyref") (ref.null any))
103 (assert_return (invoke "set-anyref-non-null"))
105 (assert_return (invoke "set-anyref" (ref.null any)))
106 (assert_return (invoke "get-anyref") (ref.null any))
113 (func (export "struct.get-null") (param (ref null $t))
117 (func (export "struct.get_s-null") (param (ref null $t))
121 (func (export "struct.get_u-null") (param (ref null $t))
125 (func (export "struct.set-null") (param (ref null $t))
130 (assert_trap (invoke "struct.get-null" (ref.null none)) "null structure reference")
131 (assert_trap (invoke "struct.get_s-null" (ref.null none)) "null structure reference")
132 (assert_trap (invoke "struct.get_u-null" (ref.null none)) "null structure reference")
133 (assert_trap (invoke "struct.set-null" (ref.null none)) "null structure reference")