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