//pass
//--local_size=64 --num_groups=12 --no-inline

__kernel void foo(__global unsigned *globalCounter, __local unsigned *localCounter, __global float *globalArray, __local float *localArray) {

    unsigned globalIndex = atomic_inc(globalCounter);

    unsigned localIndex = atomic_inc(localCounter);

    globalArray[globalIndex] = get_global_id(0);

    localArray[localIndex] = get_local_id(0);

}
