summaryrefslogtreecommitdiffstats
path: root/tests/ui/sanitize/split-lto-unit-requires-lto.rs
blob: 3c497260e85c685f0317b07ff421282bf05dfc8a (plain)
1
2
3
4
5
6
7
8
// 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]