blob: 845dc4c0444f19236b7c2412016a729b76712798 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// run-pass
fn test1(f: f32) -> bool {
// test that we properly promote temporaries to allocas when a temporary is assigned to
// multiple times (assignment is still happening once ∀ possible dataflows).
!(f.is_nan() || f.is_infinite())
}
fn main() {
assert_eq!(test1(0.0), true);
}
|