blob: 3a0fc143da6fb33690a5b84b67b0c3eb336f0465 (
plain)
1
2
3
4
5
6
7
8
9
|
// Verifies that when compiling with `-Zsanitizer-cfi-generalize-pointers` the
// `#[cfg(sanitizer_cfi_generalize_pointers)]` attribute is configured.
//
// needs-sanitizer-cfi
// check-pass
// compile-flags: -Clto -Cno-prepopulate-passes -Ctarget-feature=-crt-static -Zsanitizer=cfi -Zsanitizer-cfi-generalize-pointers
#[cfg(sanitizer_cfi_generalize_pointers)]
fn main() {}
|