rust-gpu/tests/ui/lang/control_flow/if_else.rs
2021-12-06 11:31:26 +01:00

11 lines
128 B
Rust

// build-pass
use spirv_std as _;
#[spirv(fragment)]
pub fn main(#[spirv(flat)] i: i32) {
if i > 0 {
} else {
}
}