diff options
| author | bors <bors@rust-lang.org> | 2023-01-10 00:22:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-01-10 00:22:16 +0000 |
| commit | d53924d8c7046aee91c7f83bf4c9c788c2406a7d (patch) | |
| tree | bbf23a095253ca3f23ca3d2b2181d7654d0887b1 | |
| parent | 3254bef9a79bd762b8cece2078abe168cb29ccb1 (diff) | |
| parent | 1ab06ed765e082e58fd1e8f07e46c5681632130a (diff) | |
Auto merge of #106495 - JohnTitor:issue-100772, r=compiler-errors
Add regression test for #100772 Closes #100772 r? `@compiler-errors` Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| -rw-r--r-- | src/test/ui/lto/issue-100772.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/lto/issue-100772.rs b/src/test/ui/lto/issue-100772.rs new file mode 100644 index 00000000000..d6b06719277 --- /dev/null +++ b/src/test/ui/lto/issue-100772.rs @@ -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); +} |
