Sha256: c59f63a7cde14934a6cfc1a27ea66f0cf80f2aad6506e11cd7eaf345d6df8b4e

Contents?: true

Size: 558 Bytes

Versions: 38

Compression:

Stored size: 558 Bytes

Contents

;; B uses A, and C uses A.
(witx $multi
  (load "multimodule/type_b.witx" "multimodule/type_c.witx")
)

(witx $reference
  (typename $a u32)
  (typename $b (record (field $member_a $a)))
  (typename $c (record (field $first_a $a) (field $second_a $a)))
)

(assert_representable eq $reference "a" $multi "a")
(assert_representable eq $reference "b" $multi "b")
(assert_representable eq $reference "c" $multi "c")

(assert_invalid
  (witx
    (load
          "multimodule/type_a.witx"
          "multimodule/redefine_a.witx")
  )
  "Redefinition of name `a`")

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-28.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-27.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-26.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-25.0.2 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-25.0.1 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-25.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-24.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-23.0.2 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-22.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-21.0.1 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-20.0.2 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-20.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-18.0.3 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-17.0.1 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-17.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-16.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-15.0.1 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-15.0.0 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt
wasmtime-14.0.4 ./ext/cargo-vendor/witx-0.9.1/tests/witxt/multimodule.witxt