summaryrefslogtreecommitdiffstats
path: root/tests/codegen/sanitizer/memtag-attr-check.rs
blob: 3e5e14e842971295388f1c862fa3fa3a16c5e01c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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