2023-05-19 18:30:15 -05:00
|
|
|
// This tests that the safestack attribute is applied when enabling the safe-stack sanitizer.
|
|
|
|
//
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ needs-sanitizer-safestack
|
|
|
|
//@ 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
|