summaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c/single-2.c
blob: b510ce735e25df96d23507b8d185e055dc13f6df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdlib.h>

int
main (void)
{
  int i;
  i = 4;
#pragma omp single copyprivate (i)
  {
    i = 6;
  }
  if (i != 6)
    abort ();
  return 0;
}