summaryrefslogtreecommitdiff
path: root/test/regress/interp-ehv3-locals.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/interp-ehv3-locals.txt')
-rw-r--r--test/regress/interp-ehv3-locals.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/regress/interp-ehv3-locals.txt b/test/regress/interp-ehv3-locals.txt
new file mode 100644
index 00000000..e4f05c83
--- /dev/null
+++ b/test/regress/interp-ehv3-locals.txt
@@ -0,0 +1,22 @@
+;;; TOOL: run-interp-spec
+;;; ARGS*: --enable-exceptions
+;;; NOTE: ref: issue-2476
+(module
+ (tag $e0)
+ (func (export "broken-local") (result i32)
+ (local $value i32)
+ (try $try
+ (do
+ (local.set $value (i32.const 1))
+ (throw $e0)
+ )
+ (catch $e0)
+ )
+ (local.get $value)
+ )
+)
+
+(assert_return (invoke "broken-local") (i32.const 1))
+(;; STDOUT ;;;
+2/2 tests passed.
+;;; STDOUT ;;)