rust/tests/ui/sanitize/sanitizer-cfi-normalize-integers-attr-cfg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
407 B
Rust
Raw Normal View History

// Verifies that when compiling with `-Zsanitizer-cfi-normalize-integers` the
// `#[cfg(sanitizer_cfi_normalize_integers)]` attribute is configured.
//
//@ needs-sanitizer-cfi
//@ check-pass
//@ compile-flags: -Clto -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsanitizer=cfi -Zsanitizer-cfi-normalize-integers
#![feature(cfg_sanitizer_cfi)]
#[cfg(sanitizer_cfi_normalize_integers)]
fn main() {}