mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-12-01 19:24:11 +00:00
27eb1d1413
* Refactor validation tests to use compiletest * Update tests/ui/lang/core/ptr/allocate_const_scalar.rs
14 lines
196 B
Rust
14 lines
196 B
Rust
// Test panics coming from the Rust language such as `1 / 0`.
|
|
// build-pass
|
|
|
|
use spirv_std as _;
|
|
|
|
fn int_div(x: usize) -> usize {
|
|
1 / x
|
|
}
|
|
|
|
#[spirv(fragment)]
|
|
pub fn main() {
|
|
int_div(0);
|
|
}
|