about summary refs log tree commit diff
path: root/tests/ui/lto/issue-100772.rs
blob: e07d44e3be8809a32612258eb2e3a04901cb46a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ build-pass
//@ needs-sanitizer-cfi
//@ compile-flags: -Ccodegen-units=1 -Clto -Ctarget-feature=-crt-static -Zsanitizer=cfi -C unsafe-allow-abi-mismatch=sanitizer
//@ no-prefer-dynamic
//@ only-x86_64-unknown-linux-gnu
//@ ignore-backends: gcc

#![feature(allocator_api)]

fn main() {
    let _ = Box::new_in(&[0, 1], &std::alloc::Global);
}