Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Jul 27, 2024
1 parent 297f7d9 commit 6479e36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/crashes/124375.rs

This file was deleted.

6 changes: 6 additions & 0 deletions tests/ui/asm/naked-functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,9 @@ pub unsafe extern "C" fn invalid_asm_syntax(a: u32) -> u32 {
asm!(invalid_syntax)
//~^ ERROR asm template must be a string literal
}

// this previously ICE'd, see https://github.com/rust-lang/rust/issues/124375
#[naked]
pub unsafe extern "C" fn naked_with_args_and_return(a: isize, b: isize) -> isize {
asm!("lea rax, [rdi + rsi]", "ret", options(noreturn));
}

0 comments on commit 6479e36

Please sign in to comment.