view libgomp/testsuite/libgomp.fortran/lib4.f90 @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents a06113de4d67
children 84e7813d76e9
line wrap: on
line source

! { 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)
  if (kind.ne.omp_sched_static.or.modifier.ne.32) call abort
  call omp_set_schedule (omp_sched_dynamic, 4)
  call omp_get_schedule (kind, modifier)
  if (kind.ne.omp_sched_dynamic.or.modifier.ne.4) call abort
  if (omp_get_thread_limit ().lt.0) call abort
  call omp_set_max_active_levels (6)
  if (omp_get_max_active_levels ().ne.6) call abort
end program lib4