summaryrefslogtreecommitdiffstats
path: root/tests/ui/sanitize/sanitizer-cfi-requires-lto.rs
blob: 29e32889fcc77d098a9d3eaf3354b7c2d6c36cfe (plain)
1
2
3
4
5
6
7
8
// Verifies that `-Zsanitizer=cfi` requires `-Clto`, `-Clto=thin`, or `-Clinker-plugin-lto`.
//
// needs-sanitizer-cfi
// compile-flags: -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsanitizer=cfi

#![feature(no_core)]
#![no_core]
#![no_main]