Skip to content

Commit

Permalink
fix use of naked_asm! in run-make test
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Sep 14, 2024
1 parent 02af472 commit f8fe7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/run-make/naked-symbol-visibility/a_rust_dylib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ extern "C" fn vanilla_weak_linkage() -> u32 {
#[cfg(not(windows))]
#[linkage = "weak"]
extern "C" fn naked_weak_linkage() -> u32 {
unsafe { naked_asm!("mov rax, 42", "ret", options(noreturn)) }
unsafe { naked_asm!("mov rax, 42", "ret") }
}

// functions that are declared in an `extern "C"` block are currently not exported
Expand Down

0 comments on commit f8fe7bf

Please sign in to comment.