]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/asm-foreign2.rs
Bless updated output from print-type-sizes tests.
[rust.git] / tests / 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 }