blob: b99a5f0a21dbf624efffc263bf7f3f4fa6458481 [file] [log] [blame]
struct S {
int4 a[4];
};
static int counter = int(0);
int foo() {
counter = (counter + int(1));
return counter;
}
int bar() {
counter = (counter + int(2));
return counter;
}
void main() {
S x = (S)0;
int v = foo();
int v_1 = bar();
x.a[v][v_1] = (x.a[v][v_1] + int(5));
}
[numthreads(1, 1, 1)]
void unused_entry_point() {
}