blob: ed82c39c9e65f7060c42fe3bfe6f40d3202c4b45 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S {
/* 0x0000 */ int a;
};
struct tint_module_vars_struct {
device S* buf;
};
kernel void v(device S* buf [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.buf=buf};
device int* const p = (&(*tint_module_vars.buf).a);
(*p) = 12;
}