blob: 8bd527660ddef03434916c57f5c4d3218f9e9845 [file] [log] [blame]
enable chromium_experimental_full_ptr_parameters;
struct str {
arr : array<i32, 4>,
}
fn func(pointer : ptr<function, array<i32, 4>>) -> array<i32, 4> {
return *(pointer);
}
@compute @workgroup_size(1)
fn main() {
var F : str;
let r = func(&(F.arr));
}