diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/spec/multivalue.wast | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/spec/multivalue.wast b/test/spec/multivalue.wast index 3fde831df..d6089721d 100644 --- a/test/spec/multivalue.wast +++ b/test/spec/multivalue.wast @@ -1,10 +1,20 @@ (module - (func (export "pair") (result i32 i64) + (func $pair (export "pair") (result i32 i64) (tuple.make (i32.const 42) (i64.const 7) ) ) + (func (export "tuple-local") (result i32 i64) + (local $x (i32 i64)) + (local.get $x) + ) + (func (export "tail-call") (result i32 i64) + (return_call $pair) + (unreachable) + ) ) -(assert_return (invoke "pair") (tuple.make (i32.const 42) (i64.const 7)))
\ No newline at end of file +(assert_return (invoke "pair") (tuple.make (i32.const 42) (i64.const 7))) +(assert_return (invoke "tuple-local") (tuple.make (i32.const 0) (i64.const 0))) +(assert_return (invoke "tail-call") (tuple.make (i32.const 42) (i64.const 7))) |