2 // revisions: mirunsafeck thirunsafeck
3 // [thirunsafeck]compile-flags: -Z thir-unsafeck
17 let mut u = U { a: (1, 1) };
18 assert_eq!(u.b, (1 << 8) + 1);
20 assert_eq!(u.a, (2, 2));
22 let mut w = W { a: 0b0_11111111_00000000000000000000000 };
23 assert_eq!(w.b, f32::INFINITY);
24 w.b = f32::NEG_INFINITY;
25 assert_eq!(w.a, 0b1_11111111_00000000000000000000000);