tests/cli/component-model/example.wast
raw| 1 | ;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 | |
| 3 | ;; With what's defined so far, we can define the following component: |
| 4 | |
| 5 | (component |
| 6 | (component |
| 7 | (core module (func (export "one") (result i32) (i32.const 1))) |
| 8 | (core module (func (export "two") (result f32) (f32.const 2))) |
| 9 | ) |
| 10 | (core module (func (export "three") (result i64) (i64.const 3))) |
| 11 | (component |
| 12 | (component |
| 13 | (core module (func (export "four") (result f64) (f64.const 4))) |
| 14 | ) |
| 15 | ) |
| 16 | (component) |
| 17 | ) |