summaryrefslogtreecommitdiffstats
path: root/tests/codegen/sanitizer/safestack-attr-check.rs
blob: b19e2d13133442a01b8752c5fcc4138a39a4924f (plain)
1
2
3
4
5
6
7
8
9
10
11
// This tests that the safestack attribute is applied when enabling the safe-stack sanitizer.
//
// needs-sanitizer-safestack
// compile-flags: -Zsanitizer=safestack -Copt-level=0

#![crate_type = "lib"]

// CHECK: ; Function Attrs:{{.*}}safestack
pub fn tagged() {}

// CHECK: attributes #0 = {{.*}}safestack