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