Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5e4b646

Browse files
committed
aarch inline asm is not stable yet
1 parent b1b368c commit 5e4b646

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test-cargo-miri/tests/test.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ fn simple() {
77
#[test]
88
#[cfg_attr(miri, ignore)]
99
fn does_not_work_on_miri() {
10-
unsafe { std::arch::asm!("") };
10+
// Only do this where inline assembly is stable.
11+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
12+
unsafe {
13+
std::arch::asm!("foo");
14+
}
1115
}
1216

1317
// Make sure integration tests can access both dependencies and dev-dependencies

0 commit comments

Comments
 (0)