crates/wit-component/tests/components/link-weak-import/lib-foo.wat
raw| 1 | (module |
| 2 | (@dylink.0 |
| 3 | (mem-info (memory 0 4)) |
| 4 | (import-info "env" "foo" binding-weak) |
| 5 | (import-info "env" "bar" binding-weak) |
| 6 | ) |
| 7 | (type (func (param i32) (result i32))) |
| 8 | (import "test:test/test" "foo" (func $import_foo (type 0))) |
| 9 | (import "env" "foo" (func $import_foo2 (type 0))) |
| 10 | (import "env" "bar" (func $import_bar (type 0))) |
| 11 | (func $foo (type 0) (param i32) (result i32) |
| 12 | unreachable |
| 13 | ) |
| 14 | (export "test:test/test#foo" (func $foo)) |
| 15 | ) |