tests/cli/bad-nan.wast
raw| 1 | ;; RUN: wast --assert default --snapshot tests/snapshots % |
| 2 | |
| 3 | (assert_malformed |
| 4 | (module quote "(func (result f64) (f64.const nan:0x11111111800800080))") |
| 5 | "constant out of range") |
| 6 | |
| 7 | (assert_malformed |
| 8 | (module quote "(func (result f64) (f64.const nan:0xffffffffffffffff0))") |
| 9 | "constant out of range") |
| 10 | |
| 11 | (assert_malformed |
| 12 | (module quote "(func (result f32) (f32.const nan:0xffffffff0))") |
| 13 | "constant out of range") |