diff --git a/src/test/ui/lto/issue-100772.rs b/src/test/ui/lto/issue-100772.rs new file mode 100644 index 000000000000..b2b7230dad56 --- /dev/null +++ b/src/test/ui/lto/issue-100772.rs @@ -0,0 +1,10 @@ +// run-pass +// needs-sanitizer-cfi +// compile-flags: -Zsanitizer=cfi -Clto +// no-prefer-dynamic + +#![feature(allocator_api)] + +fn main() { + let _ = Box::new_in(&[0, 1], &std::alloc::Global); +}