summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/atomic-6.C
blob: 52ac40f2a212aea8ad140a3928372ae4646986af (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile }
// { dg-options "-w -fopenmp" }

int x[10], z;
double y[10];

void f1(void)
{
  #pragma omp atomic
    x[z] /= y[z];
}