summaryrefslogtreecommitdiff
path: root/test/roundtrip/fold-try-table.txt
blob: 9b15234bbb91843098f307f03dac88d4e601daf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;;; TOOL: run-roundtrip
;;; ARGS: --stdout --fold-exprs --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)
    (drop
      (try_table (result i32)  ;; label = @1
        (i32.const 6)))
    (block  ;; label = @1
      (drop
        (try_table (result i32)  ;; label = @2
          (catch_all 0 (;@1;))
          (nop)
          (br 2 (;@0;)
            (i32.const 7)))))
    (i32.const 8)))
;;; STDOUT ;;)