blob: 965bab381754db54f3b4454411e95a3885c280d6 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S {
int a;
};
struct tint_module_vars_struct {
device S* v;
};
kernel void tint_symbol(device S* v [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = {.v=v};
device int* const p = (&(*tint_module_vars.v).a);
int const u = ((*p) + 1);
}