blob: e82ed4cc4121dacf61d5b254eea67f107dae9935 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
thread int* P;
};
void func(thread int* const pointer) {
(*pointer) = 42;
}
kernel void v() {
thread int P = 0;
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.P=(&P)};
func(tint_module_vars.P);
}