1 // Regression test for issue 72154, where the use of AddressSanitizer enabled
2 // emission of lifetime markers during codegen, while at the same time asking
3 // always inliner pass not to insert them. This eventually lead to a
4 // miscompilation which was subsequently detected by AddressSanitizer as UB.
6 // needs-sanitizer-support
7 // needs-sanitizer-address
9 // compile-flags: -Copt-level=0 -Zsanitizer=address
18 pub fn new(t: [usize; 1]) -> Self {
24 pub fn assume_init() -> [usize; 1] {
29 let x: [usize; 1] = assume_init();