1 // FIXME(nagisa): remove the flags here once all targets support `asm!`.
2 // compile-flags: --target x86_64-unknown-linux-gnu
4 // Verify we sanitize the special tokens for the LLVM inline-assembly, ensuring people won't
5 // inadvertently rely on the LLVM-specific syntax and features.
7 #![feature(no_core, lang_items, rustc_attrs)]
8 #![crate_type = "rlib"]
10 #[rustc_builtin_macro]
20 pub unsafe fn we_escape_dollar_signs() {
21 // CHECK: call void asm sideeffect alignstack inteldialect "banana$$:"
27 pub unsafe fn we_escape_escapes_too() {
28 // CHECK: call void asm sideeffect alignstack inteldialect "banana\{{(\\|5C)}}36:"