| #include <metal_stdlib> | |
| using namespace metal; | |
| struct tint_module_vars_struct { | |
| thread int* i; | |
| }; | |
| kernel void v() { | |
| thread int i = 123; | |
| tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.i=(&i)}; | |
| thread int* const p = tint_module_vars.i; | |
| int const u = as_type<int>((as_type<uint>((*p)) + as_type<uint>(1))); | |
| } |