mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
Add regression test for #100772
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
e94fab69d0
commit
1ab06ed765
11
src/test/ui/lto/issue-100772.rs
Normal file
11
src/test/ui/lto/issue-100772.rs
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user