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

9 lines
239 B
Rust

// 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]