summary refs log tree commit diff
path: root/src/test/ui/numbers-arithmetic/saturating-float-casts.rs
AgeCommit message (Collapse)AuthorLines
2020-05-06Fixup tests to test both const-eval and runtimeMark Rousskov-99/+22
2020-05-06Pull in miri test casesMark Rousskov-5/+458
2020-05-06Define UB in float-to-int casts to saturateMark Rousskov-1/+0
- Round to zero, and representable values cast directly. - `NaN` goes to 0 - Values beyond the limits of the type are saturated to the "nearest value" (essentially rounding to zero, in some sense) in the integral type, so e.g. `f32::INFINITY` would go to `{u,i}N::MAX.`
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+135