Skip to content

Commit ce32867

Browse files
committed
Add regression test for #100772
Signed-off-by: Yuki Okushi <[email protected]>
1 parent e94fab6 commit ce32867

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

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

0 commit comments

Comments
 (0)