diff options
author | Soni L. <EnderMoneyMod@gmail.com> | 2024-11-20 14:51:48 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 09:51:48 -0800 |
commit | a0b7abef00b59eeafed58c774195189425d020b0 (patch) | |
tree | 6f7b0747d3a3ef435bda9ac14ca22d417877796b /test/roundtrip/try-table.txt | |
parent | 958d0a72030227bf3133c8b99c7c670bcdbc7636 (diff) | |
download | wabt-a0b7abef00b59eeafed58c774195189425d020b0.tar.gz wabt-a0b7abef00b59eeafed58c774195189425d020b0.tar.bz2 wabt-a0b7abef00b59eeafed58c774195189425d020b0.zip |
binary/wat: Implement EHv4 (#2470)
This pull request implements EHv4. Binary is mostly untested until
interp is working.
Diffstat (limited to 'test/roundtrip/try-table.txt')
-rw-r--r-- | test/roundtrip/try-table.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/roundtrip/try-table.txt b/test/roundtrip/try-table.txt new file mode 100644 index 00000000..62e09866 --- /dev/null +++ b/test/roundtrip/try-table.txt @@ -0,0 +1,38 @@ +;;; TOOL: run-roundtrip +;;; ARGS: --stdout --enable-exceptions --debug-names +(module + (func (result i32) + try_table (result i32) + i32.const 6 + end + drop + block + try_table (result i32) (catch_all 0) + nop + i32.const 7 + br 2 + end + drop + end + i32.const 8 + ) +) +(;; STDOUT ;;; +(module + (type (;0;) (func (result i32))) + (func (;0;) (type 0) (result i32) + try_table (result i32) ;; label = @1 + i32.const 6 + end + drop + block ;; label = @1 + try_table (result i32) ;; label = @2 + (catch_all 0 (;@1;)) + nop + i32.const 7 + br 2 (;@0;) + end + drop + end + i32.const 8)) +;;; STDOUT ;;) |