
int a(int v) {
  return v;
}

[numthreads(1, 1, 1)]
void b() {
}

