mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
f837c48f0d
Fix #90546 by filtering out global value function pointer types from the type tests, and adding the LowerTypeTests pass to the rustc LTO optimization pipelines.
12 lines
276 B
Rust
12 lines
276 B
Rust
// build-pass
|
|
// needs-sanitizer-cfi
|
|
// compile-flags: -Ccodegen-units=1 -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);
|
|
}
|