Skip to content

Commit

Permalink
fix asan test
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Sep 27, 2024
1 parent 08d11cf commit d406ba6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/codegen/naked-asan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
#![no_std]
#![feature(abi_x86_interrupt, naked_functions)]

// CHECK: define x86_intrcc void @page_fault_handler(ptr {{.*}}%0, i64 {{.*}}%1){{.*}}#[[ATTRS:[0-9]+]] {
pub fn caller() {
page_fault_handler(1, 2);
}

// CHECK: declare x86_intrcc void @page_fault_handler(ptr {{.*}}, i64 {{.*}}){{.*}}#[[ATTRS:[0-9]+]]
// CHECK-NOT: memcpy
#[naked]
#[no_mangle]
Expand Down

0 comments on commit d406ba6

Please sign in to comment.