Created
June 20, 2016 21:32
-
-
Save lqd/cdce63fbbaa6833d9f5040ac95ddc451 to your computer and use it in GitHub Desktop.
binaryen-shell ./wast/div.wast == Abort trap: 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(memory 0) | |
(type $rustfn-0-47 (func)) | |
(func $test (type $rustfn-0-47) | |
(block | |
(call_import $print_i32 | |
(i32.div | |
(i32.const 4) | |
(i32.const 2) | |
) | |
) | |
(return | |
(i32.const 1) | |
) | |
) | |
) | |
(import $print_i32 "spectest" "print" (param i32)) | |
(export "rust_fn" $test) | |
) | |
(invoke "rust_fn") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment