tests/snapshots/testsuite/start.wast/9.print
raw| 1 | (module |
| 2 | (type (;0;) (func)) |
| 3 | (type (;1;) (func (result i32))) |
| 4 | (memory (;0;) 1 1) |
| 5 | (export "inc" (func $inc)) |
| 6 | (export "get" (func $get)) |
| 7 | (start $main) |
| 8 | (func $inc (;0;) (type 0) |
| 9 | i32.const 0 |
| 10 | i32.const 0 |
| 11 | i32.load8_u |
| 12 | i32.const 1 |
| 13 | i32.add |
| 14 | i32.store8 |
| 15 | ) |
| 16 | (func $get (;1;) (type 1) (result i32) |
| 17 | i32.const 0 |
| 18 | i32.load8_u |
| 19 | return |
| 20 | ) |
| 21 | (func $main (;2;) (type 0) |
| 22 | call $inc |
| 23 | call $inc |
| 24 | call $inc |
| 25 | ) |
| 26 | (data (;0;) (i32.const 0) "A") |
| 27 | ) |