mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-12-01 19:24:11 +00:00
14 lines
213 B
Rust
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: () };
|
|
}
|