blob: 40376218908d10d41cfc0d44a085ea6fa055cf0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// compile-flags: -O
#![feature(llvm_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 { llvm_asm!("") }
// CHECK: tail call void asm sideeffect "", {{.*}}
}
|