Skip to content

Commit 5c40c5f

Browse files
committed
1 parent 467a7b9 commit 5c40c5f

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

tests/crashes/124375.rs

-11
This file was deleted.

tests/ui/asm/naked-functions.rs

+6
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,9 @@ pub unsafe extern "C" fn invalid_asm_syntax(a: u32) -> u32 {
217217
asm!(invalid_syntax)
218218
//~^ ERROR asm template must be a string literal
219219
}
220+
221+
// this previously ICE'd, see https://github.com/rust-lang/rust/issues/124375
222+
#[naked]
223+
pub unsafe extern "C" fn naked_with_args_and_return(a: isize, b: isize) -> isize {
224+
asm!("lea rax, [rdi + rsi]", "ret", options(noreturn));
225+
}

0 commit comments

Comments
 (0)