crates/wit-component/tests/components/adapt-inject-stack-with-adapt-realloc/module.wat
raw| 1 | (module |
| 2 | (import "old" "get_sum" (func (result i32))) |
| 3 | (func $cabi_realloc (param i32 i32 i32 i32) (result i32) |
| 4 | (i32.const 123456789) |
| 5 | ) |
| 6 | (func $cabi_realloc_adapter (param i32 i32 i32 i32) (result i32) |
| 7 | (i32.const 987654321) |
| 8 | ) |
| 9 | (memory (export "memory") 1) |
| 10 | (export "cabi_realloc" (func $cabi_realloc)) |
| 11 | (export "cabi_realloc_adapter" (func $cabi_realloc_adapter)) |
| 12 | ) |