diff --git a/tests/wgsl-errors.rs b/tests/wgsl-errors.rs index 8f3f9ad8fd..a99cd96aae 100644 --- a/tests/wgsl-errors.rs +++ b/tests/wgsl-errors.rs @@ -606,6 +606,15 @@ fn invalid_arrays() { .. }) } + + check_validation_error! { + "type Bad = array;", + "type Bad = array;": + Err(naga::valid::ValidationError::Type { + error: naga::valid::TypeError::NonPositiveArrayLength(_), + .. + }) + } } #[test]