blob: f0c6232d27c6fb1b4e72b4552148d1c7e268a02f [file] [log] [blame]
/* PR middle-end/99928 */
int v;
void
foo (void)
{
#pragma omp target parallel firstprivate (v) map(tofrom: v) /* { dg-bogus "'v' appears both in data and map clauses" } */
v++;
}
void
bar (void)
{
#pragma omp target firstprivate (v) map (tofrom: v) /* { dg-error "'v' appears both in data and map clauses" } */
v++;
}
void
baz (void)
{
int j;
#pragma omp target simd firstprivate (v) map (tofrom: v) private (j) /* { dg-error "'v' appears both in data and map clauses" } */
for (int i = 0; i < 1; i++)
j = v;
}