Retro68/gcc/libgomp/testsuite/libgomp.c/pr90779.c
2022-10-27 20:55:19 +02:00

19 lines
235 B
C

/* PR middle-end/90779 */
extern void abort (void);
int
main ()
{
int i, j;
for (i = 0; i < 2; ++i)
#pragma omp target map(from: j)
{
static int k = 5;
j = ++k;
}
if (j != 7)
abort ();
return 0;
}