blob: 71610a4f97a5466ec941e605dc5cdfa791f991a9 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
thread int* a;
};
fragment void f() {
thread int a = 1;
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.a=(&a)};
int const b = (*tint_module_vars.a);
}