* Update the spec reference testsuite submodule This commit brings in recent updates to the spec test suite. Most of the changes here were already fixed in `wasmparser` with some tweaks to esoteric modules, but Wasmtime also gets a bug fix where where import matching for the size of tables/memories is based on the current runtime size of the table/memory rather than the original type of the table/memory. This means that during type matching the actual value is consulted for its size rather than using the minimum size listed in its type. * Fix now-missing directories in build script
14 lines
522 B
Plaintext
14 lines
522 B
Plaintext
;; This test contains the changes in
|
|
;; https://github.com/WebAssembly/reference-types/pull/104, and can be deleted
|
|
;; once that merges and we update our upstream tests.
|
|
|
|
(module
|
|
(global $mr (mut externref) (ref.null extern))
|
|
(func (export "get-mr") (result externref) (global.get $mr))
|
|
(func (export "set-mr") (param externref) (global.set $mr (local.get 0)))
|
|
)
|
|
|
|
(assert_return (invoke "get-mr") (ref.null extern))
|
|
(assert_return (invoke "set-mr" (ref.extern 10)))
|
|
(assert_return (invoke "get-mr") (ref.extern 10))
|