| #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 = tint_module_vars_struct{.v=v}; | |
| device int* const p = (&(*tint_module_vars.v).a); | |
| int const u = ((*p) + 1); | |
| } |