rust-gpu/tests/ui/lang/issue-415.rs
2021-10-28 08:13:00 +00:00

14 lines
213 B
Rust

// Test that zero sized unions don't ICE (even if unions are generally not supported yet)
// build-pass
use spirv_std as _;
union U {
a: (),
}
#[spirv(fragment)]
pub fn main() {
let _u = U { a: () };
}