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

void
a20 ()
{
  int a = 1;
#pragma omp parallel
  {
    if (a != 0)
      {
#pragma omp flush(a)
      }
    if (a != 0)
      {
#pragma omp barrier
      }
  }
}