Retro68/gcc/libgomp/testsuite/libgomp.c++/single-1.C
2018-12-28 16:30:48 +01:00

21 lines
187 B
C

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