aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/doacross-8.c
blob: 6de06341af785abf6b084db8ed463e3c2b30497a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/108685 */
/* { dg-do compile } */

void
foo (int a)
{
  for (int m = 0; m < 10; m++)
    #pragma omp for collapse(2) ordered(4)
    for (int i = 0; i < 2; i++)
      for (int j = 0; j < a; j++)
	for (int k = 0; k < 2; k++)
	  for (int l = 0; l < a; l++)
	    {
	      #pragma omp ordered depend (source)
	      __builtin_abort ();
	    }
}