Update sanitizer test

This commit is contained in:
Nathan Corbyn 2020-06-15 11:12:19 +01:00
parent babda9470e
commit e8e0a0e4e2
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@
#![feature(no_sanitize)] #![feature(no_sanitize)]
// ASAN-LABEL: define void @test // ASAN-LABEL: define void @test
// ASAN: tail call fastcc // ASAN: call {{.*}} @random_inline
// ASAN: } // ASAN: }
// //
// LSAN-LABEL: define void @test // LSAN-LABEL: define void @test
@ -26,6 +26,7 @@ pub fn test(n: &mut u32) {
#[no_sanitize(address)] #[no_sanitize(address)]
#[inline] #[inline]
#[no_mangle]
pub fn random_inline(n: &mut u32) { pub fn random_inline(n: &mut u32) {
*n = 42; *n = 42;
} }