Retro68/gcc/libgomp/testsuite/libgomp.fortran/lib4.f90

17 lines
536 B
Fortran
Raw Normal View History

2012-03-27 23:13:14 +00:00
! { dg-do run }
program lib4
use omp_lib
integer (omp_sched_kind) :: kind
integer :: modifier
call omp_set_schedule (omp_sched_static, 32)
call omp_get_schedule (kind, modifier)
2018-12-28 15:30:48 +00:00
if (kind.ne.omp_sched_static.or.modifier.ne.32) STOP 1
2012-03-27 23:13:14 +00:00
call omp_set_schedule (omp_sched_dynamic, 4)
call omp_get_schedule (kind, modifier)
2018-12-28 15:30:48 +00:00
if (kind.ne.omp_sched_dynamic.or.modifier.ne.4) STOP 2
if (omp_get_thread_limit ().lt.0) STOP 3
2012-03-27 23:13:14 +00:00
call omp_set_max_active_levels (6)
2018-12-28 15:30:48 +00:00
if (omp_get_max_active_levels ().ne.6) STOP 4
2012-03-27 23:13:14 +00:00
end program lib4