blob: 7b1d1eeaadbd0d69fe6e314f2402901fcc790ee2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// run-pass
#![feature(core_intrinsics)]
use std::intrinsics::*;
fn main() {
unsafe {
assert_eq!(nearbyintf32(5.234f32), 5f32);
assert_eq!(nearbyintf64(6.777f64), 7f64);
}
}
|