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