c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr106981.c
bloba21d3c2029d27609184731e70376fce2d2c2892a
1 /* PR c/106981 */
2 /* { dg-do compile } */
4 void
5 foo (int a, double *b, double *c, double *d, long long e)
7 #pragma omp atomic capture
8 c[a] = d[((int) (e / 10 + 1))] = b[a] + d[((int) e / 10 + 1)]; /* { dg-error "invalid form" } */