]> git.lizzy.rs Git - rust.git/blob - tests/codegen/sanitizer_memtag_attr_check.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / codegen / sanitizer_memtag_attr_check.rs
1 // This tests that the sanitize_memtag attribute is
2 // applied when enabling the memtag sanitizer.
3 //
4 // needs-sanitizer-memtag
5 // compile-flags: -Zsanitizer=memtag -Ctarget-feature=+mte
6
7 #![crate_type = "lib"]
8
9 // CHECK: ; Function Attrs:{{.*}}sanitize_memtag
10 pub fn tagged() {}
11
12 // CHECK: attributes #0 = {{.*}}sanitize_memtag