crates/wit-component/tests/components/link-dl-openable-builtin-libdl/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 | (type (func (param i32 i32) (result i32))) |
| 7 | (import "test:test/test" "foo" (func $import_foo (type 0))) |
| 8 | (import "env" "dlopen" (func $dlopen (type 1))) |
| 9 | (func $foo (type 0) (param i32) (result i32) |
| 10 | unreachable |
| 11 | ) |
| 12 | (global $what i32 i32.const 42) |
| 13 | (export "test:test/test#foo" (func $foo)) |
| 14 | (export "bar" (func $foo)) |
| 15 | (export "baz" (func $foo)) |
| 16 | (export "what" (global $what)) |
| 17 | ) |