//xfail:BOOGIE_ERROR
//--local_size=8 --num_groups=8 --no-inline
//kernel.cl:[\s]+error:[\s]+possible[\s]+write-write[\s]+race on \(\(char\*\)p\)\[0]
//Write by work item[\s]+[\d]+[\s]+in work group[\s]+[\d], .+kernel.cl:15:12:[\s]+p\[0] = get_global_id\(0\);



__constant int A[64] = { };

__kernel void globalarray(__global float* p) {
  int i = get_global_id(0);
  int a = A[i];

  if(a == 0) {
    p[0] = get_global_id(0);
  }
}
