summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-03-10 13:43:06 -0700
committerGitHub <noreply@github.com>2020-03-10 13:43:06 -0700
commit8f16059d3c29e285d4effed7f0c1f84c1f2f4d9d (patch)
treefaaee424f0b2b77d199c385abe103ea6044cae4e /test
parent49e31f2034d9532f29704be3039829aa201556a0 (diff)
downloadbinaryen-8f16059d3c29e285d4effed7f0c1f84c1f2f4d9d.tar.gz
binaryen-8f16059d3c29e285d4effed7f0c1f84c1f2f4d9d.tar.bz2
binaryen-8f16059d3c29e285d4effed7f0c1f84c1f2f4d9d.zip
Handle multivalue returns in the interpreter (#2684)
Updates the interpreter to properly flow vectors of values, including at function boundaries. Adds a small spec test for multivalue return.
Diffstat (limited to 'test')
-rw-r--r--test/spec/multivalue.wast10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/spec/multivalue.wast b/test/spec/multivalue.wast
new file mode 100644
index 000000000..3fde831df
--- /dev/null
+++ b/test/spec/multivalue.wast
@@ -0,0 +1,10 @@
+(module
+ (func (export "pair") (result i32 i64)
+ (tuple.make
+ (i32.const 42)
+ (i64.const 7)
+ )
+ )
+)
+
+(assert_return (invoke "pair") (tuple.make (i32.const 42) (i64.const 7))) \ No newline at end of file