tests/cli/component-model/a.wast
raw| 1 | ;; RUN: wast --assert default --snapshot tests/snapshots % -f cm-values |
| 2 | |
| 3 | ;; For example, the following component: |
| 4 | |
| 5 | ;; a.wasm |
| 6 | (component |
| 7 | (import "one" (func)) |
| 8 | |
| 9 | (import "two" (value $v string)) |
| 10 | (import "three" (instance |
| 11 | (export "four" (instance |
| 12 | (export "five" (core module |
| 13 | (import "six" "a" (func)) |
| 14 | (import "six" "b" (func)) |
| 15 | )) |
| 16 | )) |
| 17 | )) |
| 18 | |
| 19 | (export "four" (value $v)) |
| 20 | ;; ... |
| 21 | ) |