Add regression test for #100772

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2023-01-06 00:05:41 +09:00
parent e94fab69d0
commit 1ab06ed765
No known key found for this signature in database

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);
}