blob: 3bf815f1747956a667b96f84e7cc5817b9845aeb [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 = {.s=s, .A=(&A), ._A=(&_A)};
int B = (*tint_module_vars.A);
int _B = (*tint_module_vars._A);
(*tint_module_vars.s) = (B + _B);
}