Add tests that trap, and fix handling of SIGFPE on x86.

This commit is contained in:
Dan Gohman
2018-11-27 06:29:07 -08:00
parent 35627cf37f
commit 2a760ae5e8
4 changed files with 62 additions and 22 deletions

View File

@@ -0,0 +1,11 @@
(module
(func $foo (result i32)
i32.const 1
i32.const 0
i32.div_s
)
(func $main
(drop (call $foo))
)
(start $main)
)