]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/asm-foreign2.rs
Auto merge of #100378 - compiler-errors:rollup-8vzsd92, r=compiler-errors
[rust.git] / src / test / rustdoc / asm-foreign2.rs
1 // only-aarch64
2 // Make sure rustdoc accepts options(att_syntax) asm! on non-x86 targets.
3
4 use std::arch::asm;
5
6 // @has asm_foreign2/fn.x86.html
7 pub unsafe fn x86(x: i64) -> i64 {
8     let y;
9     asm!("movq {}, {}", in(reg) x, out(reg) y, options(att_syntax));
10     y
11 }