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