2 /* { dg-require-effective-target tls_runtime } */
8 #pragma omp threadprivate (t)
14 t
= omp_get_thread_num () + 256;
16 if (t
!= omp_get_thread_num () + 256)
18 omp_pause_resource (omp_pause_soft
, omp_get_initial_device ());
19 /* This goes beyond what is required by the standard, we actually
20 check if the threads other than the initial one have been destroyed. */
23 if (omp_get_thread_num () != 0 && t
!= 128)
25 t
= omp_get_thread_num () + 384;
28 if (t
!= omp_get_thread_num () + 384)
30 omp_pause_resource_all (omp_pause_hard
);
33 if (omp_get_thread_num () != 0 && t
!= 128)
35 t
= omp_get_thread_num () + 512;
38 if (t
!= omp_get_thread_num () + 512)