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