mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 12:12:19 +01:00
13 lines
277 B
Rust
13 lines
277 B
Rust
//@ 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") };
|
|
}
|