]> git.lizzy.rs Git - rust.git/blob - src/test/codegen/no-output-asm-is-volatile.rs
Rollup merge of #69104 - tmiasko:configure-cmake, r=Mark-Simulacrum
[rust.git] / src / test / codegen / no-output-asm-is-volatile.rs
1 // compile-flags: -O
2
3 #![feature(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 { asm!("") }
13 // CHECK: tail call void asm sideeffect "", {{.*}}
14 }