]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/asm-foreign2.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.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 }