2022-12-13 00:42:44 -06:00
|
|
|
// Verifies that when compiling with `-Zsanitizer-cfi-normalize-integers` the
|
|
|
|
// `#[cfg(sanitizer_cfi_normalize_integers)]` attribute is configured.
|
|
|
|
//
|
2024-02-16 14:02:50 -06:00
|
|
|
//@ needs-sanitizer-cfi
|
|
|
|
//@ check-pass
|
|
|
|
//@ compile-flags: -Clto -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsanitizer=cfi -Zsanitizer-cfi-normalize-integers
|
2022-12-13 00:42:44 -06:00
|
|
|
|
2023-12-22 17:37:35 -06:00
|
|
|
#![feature(cfg_sanitizer_cfi)]
|
|
|
|
|
2022-12-13 00:42:44 -06:00
|
|
|
#[cfg(sanitizer_cfi_normalize_integers)]
|
|
|
|
fn main() {}
|