Retro68/gcc/libgomp/testsuite/libgomp.c/thread-limit-5.c
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

12 lines
153 B
C

#include <stdlib.h>
#include <omp.h>
int
main ()
{
#pragma omp teams thread_limit (1)
if (omp_get_thread_limit () != 1)
abort ();
return 0;
}