rust/tests/codegen/sanitizer/safestack-attr-check.rs
2023-07-29 17:34:16 -07:00

12 lines
296 B
Rust

// This tests that the safestack attribute is applied when enabling the safe-stack sanitizer.
//
// needs-sanitizer-safestack
// compile-flags: -Zsanitizer=safestack
#![crate_type = "lib"]
// CHECK: ; Function Attrs:{{.*}}safestack
pub fn tagged() {}
// CHECK: attributes #0 = {{.*}}safestack