blob: 23ed300d9e933003a12d51225d6b4f54e8040a62 [file] [log] [blame]
void
foo (int i, int j, int k)
{
#pragma omp target in_reduction (+:i) private (i) /* { dg-error "'i' appears more than once in data-sharing clauses" } */
;
#pragma omp target private (i) in_reduction (+:i) /* { dg-error "'i' appears both in data and map clauses" } */
;
#pragma omp target in_reduction (+:i) firstprivate (i) /* { dg-error "'i' appears more than once in data-sharing clauses" } */
; /* { dg-error "'i' appears both in data and map clauses" "" { target *-*-* } .-1 } */
#pragma omp target firstprivate (i) in_reduction (+:i) /* { dg-error "'i' appears both in data and map clauses" } */
;
}