summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/critical-3.c
blob: c0046f5713900118cda6c22eed8ca1f05b0fbff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile }
// { dg-options "-fopenmp -fdump-tree-ompexp" }

void bar(void);
void foo(void)
{
  #pragma omp critical (xyzzy)
    bar();
}

// { dg-final { scan-tree-dump-times "\\&\\.gomp_critical_user_xyzzy" 2 "ompexp" } }
// { dg-final { cleanup-tree-dump "ompexp" } }