Sign in
android
/
toolchain
/
rustc
/
bcf972c0208490b0eb3ce3c170c2db486ba945b3
/
.
/
src
/
test
/
ui
/
llvm-asm
/
llvm-asm-literal-escaping.rs
blob: ecd0c2f9734f15b9bcd722bd1ef1737180d03d01 [
file
] [
log
] [
blame
]
// build-pass
// only-x86_64
#![
feature
(
llvm_asm
)]
#![
allow
(
deprecated
)]
// llvm_asm!
fn
main
()
{
unsafe
{
// "nop" :: "r"(x) : "eax" : "volatile"
let
x
=
10
;
llvm_asm
!(
"\x6Eop"
::
"\x72"
(
x
)
:
"\x65ax"
:
"\x76olatile"
);
}
}