summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/barrier-1.C
blob: 10ca553f94bccc94d3a9ae75c510a5e0693dd4b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-fopenmp -fdump-tree-gimple" } */

void f1(void)
{
  #pragma omp barrier
}

void f2(bool p)
{
  if (p)
    {
      #pragma omp barrier
    }
}

/* { dg-final { scan-tree-dump-times "GOMP_barrier" 2 "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */