Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / thread-limit-1.c
blobcac220246d8209caad69cb9e01b8c92f07dceac1
1 #include <omp.h>
2 #include <stdlib.h>
4 void
5 foo ()
8 #pragma omp target parallel nowait thread_limit (4) num_threads (1)
9 if (omp_get_thread_limit () > 4)
10 abort ();
12 #pragma omp taskwait
15 int
16 main ()
18 #pragma omp target thread_limit (6)
19 if (omp_get_thread_limit () > 6)
20 abort ();
21 foo ();
22 return 0;