OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / libgomp / testsuite / libgomp.fortran / lib4.f90
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) call abort
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) call abort
13   if (omp_get_thread_limit ().lt.0) call abort
14   call omp_set_max_active_levels (6)
15   if (omp_get_max_active_levels ().ne.6) call abort
16 end program lib4