summaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c/appendix-a/a.26.1.c
blob: e146fa2041c807aecca84c6e0c1bce85f87943db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run } */

#include <stdio.h>
int
main ()
{
  int i, j;
  i = 1;
  j = 2;
#pragma omp parallel private(i) firstprivate(j)
  {
    i = 3;
    j = j + 2;
  }
  printf ("%d %d\n", i, j);	/* i and j are undefined */
  return 0;
}