blob: 3e5e14e842971295388f1c862fa3fa3a16c5e01c [file] [log] [blame]
// This tests that the sanitize_memtag attribute is
// applied when enabling the memtag sanitizer.
//
// needs-sanitizer-memtag
// compile-flags: -Zsanitizer=memtag -Ctarget-feature=+mte -Copt-level=0
#![crate_type = "lib"]
// CHECK: ; Function Attrs:{{.*}}sanitize_memtag
pub fn tagged() {}
// CHECK: attributes #0 = {{.*}}sanitize_memtag