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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [reshape_source_size_1.f90] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do compile }
! Tests patch for PR29758, which arose from PR29431.  There was no check that there
! were enough elements in the source to match the shape.
!
! Contributed by Paul Thomas  <pault@gcc.gnu.org>
!
   real :: a(2,2), b = 1.0, c(3), d(4)
   a = reshape ([b], [2,2]) ! { dg-error "not enough elements" }
   a = reshape (c, [2,2])   ! { dg-error "not enough elements" }
   a = reshape (d, [2,2])
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.