rust/tests/ui/feature-gates/feature-gate-asm_goto_with_outputs.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
267 B
Rust
Raw Normal View History

//@ only-x86_64
#![feature(asm_goto)]
use std::arch::asm;
fn main() {
let mut _out: u64;
unsafe {
asm!("mov {}, 1", "jmp {}", out(reg) _out, label {});
//~^ ERROR using both label and output operands for inline assembly is unstable
}
}