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

extern int omp_get_thread_num (void);
void work (int i);
void
correct ()
{
  int i;
#pragma omp parallel private(i)
  {
    i = omp_get_thread_num ();
    work (i);
  }
}