blob: 89392d19cfbff0ed430771adae374ecec84aa36a [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) = as_type<int>((as_type<uint>(c.b__) + as_type<uint>(d)));
}