summaryrefslogtreecommitdiffstats
path: root/src/test/codegen/sanitizer_memtag_attr_check.rs
blob: 2fd362656d4b7dd3505e870392f7d1ad0315c431 (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

#![crate_type = "lib"]

// CHECK: ; Function Attrs:{{.*}}sanitize_memtag
pub fn tagged() {}

// CHECK: attributes #0 = {{.*}}sanitize_memtag