blob: 2d0a06199d43c464e5f0f243715ced78e53b56b9 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S {
/* 0x0000 */ int a;
};
struct tint_module_vars_struct {
device S* v;
};
[[max_total_threads_per_threadgroup(1)]]
kernel void v_1(device S* v [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.v=v};
device int* const p = (&(*tint_module_vars.v).a);
int const u = as_type<int>((as_type<uint>((*p)) + as_type<uint>(1)));
}