Skip to content

Commit

Permalink
Update sanitizer test
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorn committed Jun 15, 2020
1 parent babda94 commit e8e0a0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/codegen/sanitizer-no-sanitize-inlining.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#![feature(no_sanitize)]

// ASAN-LABEL: define void @test
// ASAN: tail call fastcc
// ASAN: call {{.*}} @random_inline
// ASAN: }
//
// LSAN-LABEL: define void @test
Expand All @@ -26,6 +26,7 @@ pub fn test(n: &mut u32) {

#[no_sanitize(address)]
#[inline]
#[no_mangle]
pub fn random_inline(n: &mut u32) {
*n = 42;
}

0 comments on commit e8e0a0e

Please sign in to comment.