blob: 59addf9dcdbd3a7f56ecafa47d363c2f46c2be2a [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device int* s;
};
struct _A {
int _B;
};
kernel void f(device int* s [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.s=s};
_A const c = _A{};
int const d = c._B;
(*tint_module_vars.s) = (c._B + d);
}