mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
6d75f54310
Moves the sanitizer ui tests to the sanitizer directory and removes the sanitizer prefix from tests file names similarly to how the sanitizer codegen tests are organized.
12 lines
411 B
Rust
12 lines
411 B
Rust
// 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
|
|
|
|
#![feature(cfg_sanitizer_cfi)]
|
|
|
|
#[cfg(sanitizer_cfi_generalize_pointers)]
|
|
fn main() {}
|