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

13 lines
154 B
WebGPU Shading Language

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