Files
wasm2elf-mb/examples/fptrap.wat

5 lines
154 B
WebAssembly Text Format

;; float -> int conversion of an out-of-range value traps (exit 134)
(module
(func (export "main") (result i32)
(i32.trunc_f64_s (f64.const 3e9))))