Skip to content

Commit

Permalink
Add regression test for rust-lang#100772
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
JohnTitor committed Jan 8, 2023
1 parent e94fab6 commit 1ab06ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/ui/lto/issue-100772.rs
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 1ab06ed

Please sign in to comment.