Files
rust/tests/ui/asm/normalizable-asm-ty.rs

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

17 lines
325 B
Rust
Raw Normal View History

//@ check-pass
//@ needs-asm-support
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
fn invoke(pc_section: &[usize]) {
unsafe {
std::arch::asm!(
"/* {} */",
in(reg) pc_section[0]
);
}
}
fn main() {}