]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/asm-foreign2.rs
Auto merge of #82624 - ojeda:rwlock-example-deadlock, r=JohnTitor
[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 #![feature(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 }