summaryrefslogtreecommitdiff
path: root/test/interp/trap-with-callstack.txt
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-04-01 15:21:00 -0700
committerBen Smith <binji@chromium.org>2016-04-02 22:32:14 -0700
commit401fa488a537e5e735969576a55c3dfd110b01a1 (patch)
tree340b068efd786ac5a7dc866f59d5511eb3211268 /test/interp/trap-with-callstack.txt
parent370e9dfe9bd7299f8a36c9f127762c47ce90241e (diff)
downloadwabt-401fa488a537e5e735969576a55c3dfd110b01a1.tar.gz
wabt-401fa488a537e5e735969576a55c3dfd110b01a1.tar.bz2
wabt-401fa488a537e5e735969576a55c3dfd110b01a1.zip
fix some bugs w/ nullary calls and returns
Diffstat (limited to 'test/interp/trap-with-callstack.txt')
-rw-r--r--test/interp/trap-with-callstack.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/interp/trap-with-callstack.txt b/test/interp/trap-with-callstack.txt
new file mode 100644
index 00000000..b350d71d
--- /dev/null
+++ b/test/interp/trap-with-callstack.txt
@@ -0,0 +1,20 @@
+;;; TOOL: run-interp
+(module
+ (func $trap
+ (i32.div_s
+ (i32.const 1)
+ (i32.const 0)))
+
+ (func $f (call $trap))
+ (func $g (call $f))
+ (func $h (call $g))
+ (export "h" $h)
+
+ ;; this function should run properly, even after h traps.
+ (func $i (result i32)
+ (i32.const 22))
+ (export "i" $i))
+(;; STDOUT ;;;
+h() error: integer divide by zero
+i() => i32:22
+;;; STDOUT ;;)