rust/tests/ui/sanitize/split-lto-unit-requires-lto.rs
2024-02-16 20:02:50 +00:00

9 lines
256 B
Rust

// Verifies that `-Zsplit-lto-unit` requires `-Clto`, `-Clto=thin`, or `-Clinker-plugin-lto`.
//
//@ needs-sanitizer-cfi
//@ compile-flags: -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsplit-lto-unit
#![feature(no_core)]
#![no_core]
#![no_main]