rust-gpu/tests/ui/arch/any.rs
XAMPPRocky 27eb1d1413
Refactor validation tests to use compiletest (#464)
* Refactor validation tests to use compiletest

* Update tests/ui/lang/core/ptr/allocate_const_scalar.rs
2021-03-18 17:16:21 +00:00

8 lines
143 B
Rust

// build-pass
#[spirv(fragment)]
pub fn main() {
let vector = glam::BVec2::new(true, false);
assert!(spirv_std::arch::any(vector));
}