Skip to content

Commit

Permalink
Auto merge of #106495 - JohnTitor:issue-100772, r=compiler-errors
Browse files Browse the repository at this point in the history
Add regression test for #100772

Closes #100772
r? `@compiler-errors`
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
bors committed Jan 10, 2023
2 parents 3254bef + 1ab06ed commit d53924d
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 d53924d

Please sign in to comment.