blob: 43f08f9662b4371eaa158312b3ce5633dda0e3e6 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct str {
int i;
};
struct tint_module_vars_struct {
thread str* P;
};
int func(thread int* 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)};
int const r = func((&(*tint_module_vars.P).i));
}