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