Retro68/gcc/libgomp/testsuite/libgomp.c++/single-1.C
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

20 lines
183 B
C

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