| 1 |
! { dg-do run } |
| 2 |
|
| 3 |
program lib4 |
| 4 |
use omp_lib |
| 5 |
integer (omp_sched_kind) :: kind |
| 6 |
integer :: modifier |
| 7 |
call omp_set_schedule (omp_sched_static, 32) |
| 8 |
call omp_get_schedule (kind, modifier) |
| 9 |
if (kind.ne.omp_sched_static.or.modifier.ne.32) stop 1 |
| 10 |
call omp_set_schedule (omp_sched_dynamic, 4) |
| 11 |
call omp_get_schedule (kind, modifier) |
| 12 |
if (kind.ne.omp_sched_dynamic.or.modifier.ne.4) stop 2 |
| 13 |
if (omp_get_thread_limit ().lt.0) stop 3 |
| 14 |
call omp_set_max_active_levels (6) |
| 15 |
if (omp_get_max_active_levels ().ne.6) stop 4 |
| 16 |
if (omp_get_max_active_levels () & |
| 17 |
.gt.omp_get_supported_active_levels ()) stop 5 |
| 18 |
end program lib4 |