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