summaryrefslogtreecommitdiff
path: root/test/regress/interp-throw-before-try.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/interp-throw-before-try.txt')
-rw-r--r--test/regress/interp-throw-before-try.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/regress/interp-throw-before-try.txt b/test/regress/interp-throw-before-try.txt
new file mode 100644
index 00000000..69ea3001
--- /dev/null
+++ b/test/regress/interp-throw-before-try.txt
@@ -0,0 +1,19 @@
+;;; TOOL: run-interp-spec
+;;; ARGS*: --enable-exceptions
+(module
+ (tag $e0)
+ (func (export "throws")
+ (throw $e0)
+ (try $try
+ (do
+ )
+ (catch $e0)
+ )
+ )
+)
+
+(assert_exception (invoke "throws"))
+(;; STDOUT ;;;
+out/test/regress/interp-throw-before-try.txt:15: assert_exception passed
+2/2 tests passed.
+;;; STDOUT ;;)