We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1b368c commit 5e4b646Copy full SHA for 5e4b646
test-cargo-miri/tests/test.rs
@@ -7,7 +7,11 @@ fn simple() {
7
#[test]
8
#[cfg_attr(miri, ignore)]
9
fn does_not_work_on_miri() {
10
- unsafe { std::arch::asm!("") };
+ // 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
+ }
15
}
16
17
// Make sure integration tests can access both dependencies and dev-dependencies
0 commit comments