summary refs log tree commit diff
path: root/src/test/ui/llvm-asm/llvm-asm-literal-escaping.rs
blob: 5d45f5084c5eec399396315a493b2c134f4a410b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-pass
// only-x86_64

#![feature(llvm_asm)]

fn main() {
    unsafe {
        // "nop" :: "r"(x) : "eax" : "volatile"
        let x = 10;
        llvm_asm!("\x6Eop" :: "\x72"(x) : "\x65ax" : "\x76olatile");
    }
}