crates/wit-component/tests/components/link-resources/lib-bar.wat
raw| 1 | (module |
| 2 | (@dylink.0 |
| 3 | (mem-info (memory 0 4)) |
| 4 | (needed "foo") |
| 5 | ) |
| 6 | (type (func (param i32) (result i32))) |
| 7 | (func $x_ctor (type 0) (param i32) (result i32) |
| 8 | unreachable |
| 9 | ) |
| 10 | (func $x_get (type 0) (param i32) (result i32) |
| 11 | unreachable |
| 12 | ) |
| 13 | (export "test:test/bar#[constructor]x" (func $x_ctor)) |
| 14 | (export "test:test/bar#[method]x.get" (func $x_get)) |
| 15 | ) |