diff options
Diffstat (limited to 'test/roundtrip/fold-unreachable.txt')
-rw-r--r-- | test/roundtrip/fold-unreachable.txt | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/test/roundtrip/fold-unreachable.txt b/test/roundtrip/fold-unreachable.txt index 69988f1f..3ed77bcd 100644 --- a/test/roundtrip/fold-unreachable.txt +++ b/test/roundtrip/fold-unreachable.txt @@ -1,5 +1,5 @@ ;;; TOOL: run-roundtrip -;;; ARGS: --stdout --fold-exprs +;;; ARGS: --stdout --enable-exceptions --fold-exprs (module (func (result i32) i32.const 1 @@ -26,7 +26,13 @@ (func (result i32) i32.const 0 return - i32.eqz)) + i32.eqz) + + (func + ref.null exn + throw_ref + drop + )) (;; STDOUT ;;; (module (type (;0;) (func (result i32))) @@ -50,5 +56,9 @@ (func (;3;) (type 0) (result i32) (i32.eqz (return - (i32.const 0))))) + (i32.const 0)))) + (func (;4;) (type 1) + (drop + (throw_ref + (ref.null exn))))) ;;; STDOUT ;;) |