
void main() {
  int i = int(0);
  i = (i + int(1));
}

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

