dawn-cmake/test/bug/tint/1321.wgsl

13 lines
157 B
WebGPU Shading Language

fn foo() -> i32 {
return 1;
}
@stage(fragment)
fn main() {
var arr = array<f32, 4>();
for (let a = &arr[foo()]; ;) {
let x = *a;
break;
}
}