Skip to content

Commit 497bd41

Browse files
committed
Add test
1 parent f885c81 commit 497bd41

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
;;; TOOL: run-interp-spec
2+
;;; ARGS*: --enable-exceptions
3+
(module
4+
(tag $e0)
5+
(func (export "throws")
6+
(throw $e0)
7+
(try $try
8+
(do
9+
)
10+
(catch $e0)
11+
)
12+
)
13+
)
14+
15+
(assert_exception (invoke "throws"))
16+
(;; STDOUT ;;;
17+
out/test/regress/interp-throw-before-try.txt:15: assert_exception passed
18+
2/2 tests passed.
19+
;;; STDOUT ;;)

0 commit comments

Comments
 (0)