blob: cc9db62d02947afc95d1aa162241f0f2e13ce2a4 [file] [log] [blame]
/* PR fortran/99226 */
/* { dg-do compile } */
void
foo (int n)
{
int i;
#pragma omp target /* { dg-error "construct with nested 'teams' construct contains directives outside of the 'teams' construct" } */
{
#pragma omp teams distribute dist_schedule (static, n + 4)
for (i = 0; i < 8; i++)
;
#pragma omp teams distribute dist_schedule (static, n + 4)
for (i = 0; i < 8; i++)
;
}
}