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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [allocatable7.f90] - Blame information for rev 801

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

Line No. Rev Author Line
1 735 jeremybenn
! { dg-do run }
2
 
3
  integer, allocatable :: a(:)
4
  logical :: l
5
  l = .false.
6
!$omp parallel firstprivate (a) reduction (.or.:l)
7
  l = allocated (a)
8
  allocate (a(10))
9
  l = l .or. .not. allocated (a)
10
  a = 10
11
  if (any (a .ne. 10)) l = .true.
12
  deallocate (a)
13
  l = l .or. allocated (a)
14
!$omp end parallel
15
  if (l) call abort
16
end

powered by: WebSVN 2.1.0

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