rust/tests/ui/sanitizer/cfi-generalize-pointers-requires-cfi.rs

10 lines
295 B
Rust
Raw Normal View History

// Verifies that `-Zsanitizer-cfi-generalize-pointers` requires `-Zsanitizer=cfi` or
// `-Zsanitizer=kcfi`.
//
//@ needs-sanitizer-cfi
//@ compile-flags: -Clto -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsanitizer-cfi-generalize-pointers
#![feature(no_core)]
#![no_core]
#![no_main]