OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [reshape_source_size_1.f90] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Tests patch for PR29758, which arose from PR29431.  There was no check that there
3
! were enough elements in the source to match the shape.
4
!
5
! Contributed by Paul Thomas  
6
!
7
   real :: a(2,2), b = 1.0, c(3), d(4)
8
   a = reshape ([b], [2,2]) ! { dg-error "not enough elements" }
9
   a = reshape (c, [2,2])   ! { dg-error "not enough elements" }
10
   a = reshape (d, [2,2])
11
end

powered by: WebSVN 2.1.0

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