2 // This used to generate invalid IR in that even if we took the
3 // `false` branch we'd still try to free the Box from the other
4 // arm. This was due to treating `*Box::new(9)` as an rvalue datum
5 // instead of as a place.
7 fn test(foo: bool) -> u8 {
15 assert_eq!(9, test(true));