Skip to content

Commit 23daff4

Browse files
committed
Fix test to be x86_64-specific
The test uses x86_64 assembly instructions and should only run on x86_64 platforms to avoid CI failures on other architectures.
1 parent 6ae91e0 commit 23daff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui/asm/naked-functions-external-weak.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ compile-flags: -C opt-level=0
22
//@ needs-asm-support
3-
//@ run-pass
3+
//@ only-x86_64
44

55
// Test that naked functions with external weak linkage don't cause SIGILL
66
// This is a regression test for issue #142880
@@ -15,7 +15,7 @@ use std::arch::asm;
1515
extern "C" fn naked_weak_function() -> u32 {
1616
unsafe {
1717
asm!(
18-
"mov eax, 42",
18+
"mov rax, 42",
1919
"ret",
2020
options(noreturn)
2121
);

0 commit comments

Comments
 (0)