mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 19:08:20 +00:00
12 lines
281 B
Rust
12 lines
281 B
Rust
//@ build-pass
|
|
//@ needs-sanitizer-cfi
|
|
//@ compile-flags: -Ccodegen-units=1 -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);
|
|
}
|