Retro68/gcc/libgomp/testsuite/libgomp.c/omp-single-1.c

21 lines
183 B
C
Raw Normal View History

2012-03-27 23:13:14 +00:00
extern void abort (void);
2015-08-28 15:33:40 +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;
}