c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / target-in-reduction-1.c
blob23ed300d9e933003a12d51225d6b4f54e8040a62
1 void
2 foo (int i, int j, int k)
4 #pragma omp target in_reduction (+:i) private (i) /* { dg-error "'i' appears more than once in data-sharing clauses" } */
6 #pragma omp target private (i) in_reduction (+:i) /* { dg-error "'i' appears both in data and map clauses" } */
8 #pragma omp target in_reduction (+:i) firstprivate (i) /* { dg-error "'i' appears more than once in data-sharing clauses" } */
9 ; /* { dg-error "'i' appears both in data and map clauses" "" { target *-*-* } .-1 } */
10 #pragma omp target firstprivate (i) in_reduction (+:i) /* { dg-error "'i' appears both in data and map clauses" } */