rust/tests/ui/lto/issue-100772.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
256 B
Rust
Raw Normal View History

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