OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [nestedfn3.f90] - Rev 791

Go to most recent revision | Compare with Previous | Blame | View Log

! PR middle-end/28790
! { dg-do run }

program nestomp
  integer :: j
  j = 8
  call bar
  if (j.ne.10) call abort
contains
  subroutine foo (i)
    integer :: i
  !$omp atomic
    j = j + i - 5
  end subroutine
  subroutine bar
  use omp_lib
  integer :: i
  i = 6
  call omp_set_dynamic (.false.)
  !$omp parallel num_threads (2)
    call foo(i)
  !$omp end parallel
  end subroutine
end

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.