Retro68/gcc/libgomp/testsuite/libgomp.c/omp-single-1.c
2015-08-28 17:33:40 +02:00

21 lines
183 B
C

extern void abort (void);
int
main()
{
int i = 0;
#pragma omp parallel shared (i)
{
#pragma omp single
{
i++;
}
}
if (i != 1)
abort ();
return 0;
}