2 // revisions: mirunsafeck thirunsafeck
3 // [thirunsafeck]compile-flags: -Z thir-unsafeck
6 #![allow(illegal_floating_point_literal_pattern)]
23 fn is_zero(v
: Value
) -> bool
{
26 Value { tag: Tag::I, u: U { i: 0 }
} => true,
27 Value { tag: Tag::F, u: U { f: 0.0 }
} => true,
52 let v
= Value { tag: Tag::I, u: U { i: 1 }
};
53 assert_eq
!(is_zero(v
), false);