blob: a1383a973e1a644175785350891d636d062f8fb4 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device int* s;
thread int* A;
thread int* _A;
};
kernel void f(device int* s [[buffer(0)]]) {
thread int A = 1;
thread int _A = 2;
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.s=s, .A=(&A), ._A=(&_A)};
int B = (*tint_module_vars.A);
int _B = (*tint_module_vars._A);
(*tint_module_vars.s) = (B + _B);
}