]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/no-output-asm-is-volatile.rs
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / codegen / no-output-asm-is-volatile.rs
1 // compile-flags: -O
2
3 #![feature(llvm_asm)]
4 #![crate_type = "lib"]
5
6 // Check that inline assembly expressions without any outputs
7 // are marked as having side effects / being volatile
8
9 // CHECK-LABEL: @assembly
10 #[no_mangle]
11 pub fn assembly() {
12     unsafe { llvm_asm!("") }
13 // CHECK: tail call void asm sideeffect "", {{.*}}
14 }