Skip to content

Commit

Permalink
Rollup merge of rust-lang#106495 - JohnTitor:issue-100772, r=compiler…
Browse files Browse the repository at this point in the history
…-errors

Add regression test for rust-lang#100772

Closes rust-lang#100772
r? `@compiler-errors`
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
matthiaskrgr authored Jan 7, 2023
2 parents 58a2367 + ce32867 commit 1730aa2
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 1730aa2

Please sign in to comment.