Add unit test suites (#3490)
This commit is contained in:
9
tests/unit/gc/wasm-apps/struct3.wast
Normal file
9
tests/unit/gc/wasm-apps/struct3.wast
Normal file
@ -0,0 +1,9 @@
|
||||
(module
|
||||
(type $t (struct (field i32 (mut i32))))
|
||||
(func (export "struct.get-null")
|
||||
(local (ref null $t)) (drop (struct.get $t 1 (local.get 0)))
|
||||
)
|
||||
(func (export "struct.set-null")
|
||||
(local (ref null $t)) (struct.set $t 1 (local.get 0) (i32.const 0))
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user