]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32805.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / issues / issue-32805.rs
1 // run-pass
2 fn const_mir() -> f32 { 9007199791611905.0 }
3
4 fn main() {
5     let original = "9007199791611905.0"; // (1<<53)+(1<<29)+1
6     let expected = "9007200000000000";
7
8     assert_eq!(const_mir().to_string(), expected);
9     assert_eq!(original.parse::<f32>().unwrap().to_string(), expected);
10 }