mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
Update single_pass_tests/loop to check output value.
This commit is contained in:
parent
13c5446c55
commit
4451a0f35c
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(func $main (export "main") (result i32)
|
||||
(func $main (export "main")
|
||||
(local $count i32)
|
||||
(local $sum i32)
|
||||
(loop (result i32)
|
||||
@ -7,10 +7,11 @@
|
||||
(set_local $sum (i32.add (get_local $sum) (get_local $count)))
|
||||
(i32.sub (i32.const 1) (i32.eq
|
||||
(get_local $count)
|
||||
(i32.const 100000)
|
||||
(i32.const 50000)
|
||||
))
|
||||
(br_if 0)
|
||||
(get_local $sum)
|
||||
)
|
||||
(if (i32.ne (i32.const 1250025000)) (unreachable))
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user