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

Subversion Repositories openrisc

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

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

! PR fortran/48894
! { dg-do run }
! { dg-options "-fdefault-integer-8" }

  use omp_lib
  integer, parameter :: zero = 0
  integer :: err
  logical :: l
  err = 0
  !$omp parallel
    !$omp parallel private (l)
      l = omp_get_ancestor_thread_num (-HUGE (zero)) .ne. -1
      l = l .or. (omp_get_ancestor_thread_num (HUGE (zero)) .ne. -1)
      l = l .or. (omp_get_team_size (-HUGE (zero)) .ne. -1)
      l = l .or. (omp_get_team_size (HUGE (zero)) .ne. -1)
      if (l) then
        !$omp atomic
          err = err + 1
      endif
    !$omp end parallel
  !$omp end parallel
  if (err .ne. 0) call abort
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.