Skip to content

Commit d53924d

Browse files
committed
Auto merge of rust-lang#106495 - JohnTitor:issue-100772, r=compiler-errors
Add regression test for rust-lang#100772 Closes rust-lang#100772 r? `@compiler-errors` Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2 parents 3254bef + 1ab06ed commit d53924d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/ui/lto/issue-100772.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// run-pass
2+
// needs-sanitizer-cfi
3+
// compile-flags: -Clto -Ctarget-feature=-crt-static -Zsanitizer=cfi
4+
// no-prefer-dynamic
5+
// only-x86_64-unknown-linux-gnu
6+
7+
#![feature(allocator_api)]
8+
9+
fn main() {
10+
let _ = Box::new_in(&[0, 1], &std::alloc::Global);
11+
}

0 commit comments

Comments
 (0)