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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.fortran/] [pr32550.f90] - Rev 273

Compare with Previous | Blame | View Log

! PR fortran/32550
! { dg-do run }
! { dg-require-effective-target tls_runtime }

      integer, pointer, save :: ptr
      integer, target :: targ
      integer :: e
!$omp threadprivate(ptr)
      e = 0
      targ = 42
!$omp parallel shared(targ)
!$omp single
      ptr => targ
!$omp end single copyprivate(ptr)
      if (ptr.ne.42) then
!$omp atomic
        e = e + 1
      end if
!$omp end parallel
      if (e.ne.0) call abort
      end

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.