diff --git a/tests/tests/shader/array_size_overrides.rs b/tests/tests/shader/array_size_overrides.rs index 7f1d324254..944d648c75 100644 --- a/tests/tests/shader/array_size_overrides.rs +++ b/tests/tests/shader/array_size_overrides.rs @@ -11,6 +11,13 @@ const SHADER: &str = r#" @group(0) @binding(0) var output: array; + // When `n` is overridden to 14 above, it will generate the type `array` which + // already exists in the program because of variable declaration. Ensures naga does not panic + // when this happens. + // + // See https://github.com/gfx-rs/wgpu/issues/6722 for more info. + var testing: array; + @compute @workgroup_size(1) fn main() { // 1d spiral for (var i = 0; i < n - 2; i++) {