#version 310 es

shared int v[4];
int foo(uint p_indices[1]) {
  barrier();
  int v_1 = v[p_indices[0u]];
  barrier();
  return v_1;
}
int bar() {
  return foo(uint[1](uint(0)));
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
}
