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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [forall_14.f90] - Rev 801

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

! { dg-do compile }
!
! PR fortran/46205
!
! Contributed by Jonathan Stott
!

program forallBug
  logical :: valid(4) = (/ .true., .true., .false., .true. /)
  real    :: vec(4)
  integer :: j

  ! This is an illegal statement.  It should read valid(j), not valid.
  forall (j = 1:4, valid) ! { dg-error "requires a scalar LOGICAL expression" }
     vec(j) = sin(2*3.14159/j)
  end forall
end program forallBug

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.