2023-05-19 18:30:15 -05:00
|
|
|
// This tests that the safestack attribute is applied when enabling the safe-stack sanitizer.
|
|
|
|
//
|
|
|
|
// needs-sanitizer-safestack
|
2023-10-06 19:29:42 -05:00
|
|
|
// compile-flags: -Zsanitizer=safestack -Copt-level=0
|
2023-05-19 18:30:15 -05:00
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
// CHECK: ; Function Attrs:{{.*}}safestack
|
|
|
|
pub fn tagged() {}
|
|
|
|
|
|
|
|
// CHECK: attributes #0 = {{.*}}safestack
|