summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/atomic-6.c
blob: 0d56becd85eb044104c83efa99e81971a2f6e872 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

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

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