summaryrefslogtreecommitdiffstats
path: root/tests/ui/sanitize/sanitizer-cfi-requires-lto.rs
blob: e9a49dd3ff114bbb8e2d03dca1d8d3d0b6992c24 (plain)
1
2
3
4
5
6
7
8
// Verifies that `-Zsanitizer=cfi` requires `-Clto` 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]