#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
thread int* i; | |
}; | |
kernel void tint_symbol() { | |
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 = ((*p) + 1); | |
} |