blob: 2dbd2d72d8add5f319b187c8f969be8a3b627ef5 [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);
}