]>
git.proxmox.com Git - rustc.git/blob - tests/assembly/niche-prefer-zero.rs
1 // Check that niche selection prefers zero and that jumps are optimized away.
2 // See https://github.com/rust-lang/rust/pull/87794
3 // assembly-output: emit-asm
5 // compile-flags: -Copt-level=3
17 pub fn handle(x
: Option
<Size
>) -> u8 {
20 Some(size
) => size
as u8,
24 // There should be no jumps in output