diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/lto/issue-100772.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/lto/issue-100772.rs b/tests/ui/lto/issue-100772.rs new file mode 100644 index 000000000..d6b067192 --- /dev/null +++ b/tests/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); +} |