blob: 0244873a025b148e68b6567fd988643ab751c75a [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S {
int i;
};
struct tint_module_vars_struct {
thread S* V;
};
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
thread S V = {};
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.V=(&V)};
int const i = (*tint_module_vars.V).i;
}