blob: 47b38d29417424a5c8b206b715a9f7976868dca9 [file] [log] [blame]
// compile-flags: -O
#![feature(asm)]
#![crate_type = "lib"]
// Check that inline assembly expressions without any outputs
// are marked as having side effects / being volatile
// CHECK-LABEL: @assembly
#[no_mangle]
pub fn assembly() {
unsafe { asm!("") }
// CHECK: tail call void asm sideeffect "", {{.*}}
}