blob: d53ca93d6f1d4edb6bdaea084e44c2ba4a7609c5 [file] [log] [blame]
// { dg-do compile }
struct S; // { dg-message "forward declaration" }
void foo (S &);
void
f1 (S &x) // { dg-error "has incomplete type" }
{
#pragma omp parallel private (x)
foo (x);
}
void
f2 (S &x) // { dg-error "has incomplete type" }
{
#pragma omp parallel firstprivate (x)
foo (x);
}
void
f3 (S &x) // { dg-error "has incomplete type" }
{
#pragma omp parallel for lastprivate (x)
for (int i = 0; i < 10; i++)
foo (x);
}