1
Fork 0

Auto merge of #106495 - JohnTitor:issue-100772, r=compiler-errors

Add regression test for #100772

Closes #100772
r? `@compiler-errors`
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
bors 2023-01-10 00:22:16 +00:00
commit d53924d8c7

View file

@ -0,0 +1,11 @@
// run-pass
// needs-sanitizer-cfi
// compile-flags: -Clto -Ctarget-feature=-crt-static -Zsanitizer=cfi
// no-prefer-dynamic
// only-x86_64-unknown-linux-gnu
#![feature(allocator_api)]
fn main() {
let _ = Box::new_in(&[0, 1], &std::alloc::Global);
}