view libgomp/testsuite/libgomp.c/appendix-a/a.26.1.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents a06113de4d67
children
line wrap: on
line source

/* { 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;
}