summaryrefslogtreecommitdiff
path: root/test/interp/return.txt
diff options
context:
space:
mode:
authorKwadwo 'Que' Amankwa <jofreezy@hotmail.co.uk>2016-10-25 21:14:37 +0100
committerBen Smith <binjimin@gmail.com>2016-10-25 13:14:37 -0700
commit134a7599e72f5d496450f8a9c03a992c8d678155 (patch)
tree5de2e839e88dae472aaab9e63807e3a6cf324c46 /test/interp/return.txt
parentaa78908319b232f8aa7429a468eaf12ae107502a (diff)
downloadwabt-134a7599e72f5d496450f8a9c03a992c8d678155.tar.gz
wabt-134a7599e72f5d496450f8a9c03a992c8d678155.tar.bz2
wabt-134a7599e72f5d496450f8a9c03a992c8d678155.zip
Update tests syntax to new flat syntax (#180)
* more converted tests * more tests plus fix to broken test * fixed broken tests * converted more tests and fixed issues with previously submitted 'interp/binary.txt' and 'nested-if.txt'
Diffstat (limited to 'test/interp/return.txt')
-rw-r--r--test/interp/return.txt32
1 files changed, 22 insertions, 10 deletions
diff --git a/test/interp/return.txt b/test/interp/return.txt
index 37c4a32b..b3159250 100644
--- a/test/interp/return.txt
+++ b/test/interp/return.txt
@@ -1,22 +1,34 @@
;;; TOOL: run-interp
(module
(func $f (param i32) (result i32)
- (if (i32.eq (get_local 0) (i32.const 0))
- (return (i32.const 1)))
-
- (if (i32.eq (get_local 0) (i32.const 1))
- (return (i32.const 2)))
-
- (return (i32.const 3)))
+ get_local 0
+ i32.const 0
+ i32.eq
+ if
+ i32.const 1
+ return
+ end
+ get_local 0
+ i32.const 1
+ i32.eq
+ if
+ i32.const 2
+ return
+ end
+ i32.const 3
+ return)
(func (export "test1") (result i32)
- (call $f (i32.const 0)))
+ i32.const 0
+ call $f)
(func (export "test2") (result i32)
- (call $f (i32.const 1)))
+ i32.const 1
+ call $f)
(func (export "test3") (result i32)
- (call $f (i32.const 5))))
+ i32.const 5
+ call $f))
(;; STDOUT ;;;
test1() => i32:1
test2() => i32:2