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"]
10 #![allow(named_asm_labels)]
12 #[rustc_builtin_macro]
22 pub unsafe fn we_escape_dollar_signs() {
23 // CHECK: call void asm sideeffect alignstack inteldialect "banana$$:"
29 pub unsafe fn we_escape_escapes_too() {
30 // CHECK: call void asm sideeffect alignstack inteldialect "banana\{{(\\|5C)}}36:"