diff options
Diffstat (limited to 'test/passes/drop-return-values.txt')
-rw-r--r-- | test/passes/drop-return-values.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/passes/drop-return-values.txt b/test/passes/drop-return-values.txt new file mode 100644 index 000000000..8f372ea24 --- /dev/null +++ b/test/passes/drop-return-values.txt @@ -0,0 +1,31 @@ +(module + (memory 10) + (func $0 + (local $x i32) + (local $1 i32) + (i32.add + (block + (set_local $x + (i32.const 10) + ) + (get_local $x) + ) + (i32.const 20) + ) + (i32.add + (block + (block + (set_local $1 + (i32.const 40) + ) + (i32.store + (i32.const 30) + (get_local $1) + ) + ) + (get_local $1) + ) + (i32.const 50) + ) + ) +) |