gcc/libgomp/testsuite/libgomp.c/thread-limit-3.c

13 lines
181 B
C

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