blob: ff3eb2b2dab99e939855f8f68a07ea703562f54e [file]
#include <metal_stdlib>
using namespace metal;
struct str {
array<int, 4> arr;
};
struct tint_module_vars_struct {
thread str* P;
};
array<int, 4> func(thread array<int, 4>* const pointer) {
return (*pointer);
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
thread str P = {};
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.P=(&P)};
array<int, 4> const r = func((&(*tint_module_vars.P).arr));
}