Retro68/gcc/libgomp/testsuite/libgomp.c++/single-1.C

21 lines
187 B
C++
Raw Normal View History

2012-03-27 23:13:14 +00:00
extern "C" void abort (void);
2018-12-28 15:30:48 +00:00
int
2012-03-27 23:13:14 +00:00
main()
{
int i = 0;
#pragma omp parallel shared (i)
{
#pragma omp single
{
i++;
}
}
if (i != 1)
abort ();
return 0;
}