;;; TOOL: run-roundtrip
;;; ARGS: --stdout --fold-exprs --enable-exceptions
(module
  (event $e (param i32))
  (func
    block $b (result i32)
      try
      catch
        br_on_exn $b $e
        drop
      end
      i32.const 0
    end
    drop))
(;; STDOUT ;;;
(module
  (type (;0;) (func (param i32)))
  (type (;1;) (func))
  (func (;0;) (type 1)
    (drop
      (block (result i32)  ;; label = @1
        (try  ;; label = @2
          (do)
          (catch
            (drop
              (br_on_exn 1 (;@1;) 0))))
        (i32.const 0))))
  (event (;0;) (type 0) (param i32)))
;;; STDOUT ;;)
