about summary refs log tree commit diff
path: root/tests/assembly-llvm/asm/comments.rs
blob: 557009975ddc9e8e33c6e2ba251069ec5d3e0b25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ assembly-output: emit-asm
//@ only-x86_64
// Check that comments in assembly get passed

#![crate_type = "lib"]

// CHECK-LABEL: test_comments:
#[no_mangle]
pub fn test_comments() {
    // CHECK: example comment
    unsafe { core::arch::asm!("nop // example comment") };
}