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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [appendix-a/] [a.33.4.f90] - Rev 853

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

! { dg-do compile }
        SUBROUTINE S(N)
        INTEGER N
        REAL, DIMENSION(:), ALLOCATABLE :: A
        REAL, DIMENSION(:), POINTER :: B
        ALLOCATE (A(N))
!$OMP SINGLE            ! { dg-error "COPYPRIVATE clause object 'a'" }
            ALLOCATE (B(N))
        READ (11) A,B
!$OMP END SINGLE COPYPRIVATE(A,B)
        ! Variable A designates a private object
        !   which has the same value in each thread
        ! Variable B designates a shared object
!$OMP BARRIER
!$OMP SINGLE
          DEALLOCATE (B)
!$OMP END SINGLE NOWAIT
      END SUBROUTINE S

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.