aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/pr99226.c
blob: cc9db62d02947afc95d1aa162241f0f2e13ce2a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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++)
      ;
  }
}