summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/appendix-a/a.14.1.c
blob: 14a7ed0bde6aef1a72f80749afeb8ef1ba2043c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */

void
a14 ()
{
  int i = 1;
#pragma omp parallel sections
  {
#pragma omp section
    {
#pragma omp critical (name)
      {
#pragma omp parallel
	{
#pragma omp single
	  {
	    i++;
	  }
	}
      }
    }
  }
}