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 7, 2023
1 parent e94fab6 commit ce32867
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/lto/issue-100772.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// run-pass
// needs-sanitizer-cfi
// compile-flags: -Zsanitizer=cfi -Clto
// no-prefer-dynamic

#![feature(allocator_api)]

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

0 comments on commit ce32867

Please sign in to comment.