1 // This tests that the safestack attribute is applied when enabling the safe-stack sanitizer. 2 // 3 // needs-sanitizer-safestack 4 // compile-flags: -Zsanitizer=safestack 5 6 #![crate_type = "lib"] 7 8 // CHECK: ; Function Attrs:{{.*}}safestack tagged()9pub fn tagged() {} 10 11 // CHECK: attributes #0 = {{.*}}safestack 12