summaryrefslogtreecommitdiffstats
path: root/tests/ui/sanitize/sanitizer-cfi-normalize-integers-attr-cfg.rs
blob: dafc20162abc12970a907c11809424b658a765f3 (plain)
1
2
3
4
5
6
7
8
9
// 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

#[cfg(sanitizer_cfi_normalize_integers)]
fn main() {}