2023-07-11 18:19:42 -05:00
|
|
|
//@ build-pass
|
2023-01-05 09:05:41 -06:00
|
|
|
//@ needs-sanitizer-cfi
|
2023-07-11 18:19:42 -05:00
|
|
|
//@ compile-flags: -Ccodegen-units=1 -Clto -Ctarget-feature=-crt-static -Zsanitizer=cfi
|
2023-01-05 09:05:41 -06:00
|
|
|
//@ no-prefer-dynamic
|
|
|
|
//@ only-x86_64-unknown-linux-gnu
|
|
|
|
|
|
|
|
#![feature(allocator_api)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = Box::new_in(&[0, 1], &std::alloc::Global);
|
|
|
|
}
|