URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [reshape_order_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-fbounds-check" }! { dg-shouldfail "Duplicate value 2 in ORDER argument to RESHAPE intrinsic" }program mainimplicit noneinteger(kind=4), dimension(6) :: source1 = (/ 1, 2, 3, 4, 5, 6 /)integer, dimension(2) :: shape1 = (/ 2, 3/)integer(kind=4), dimension(2) :: pad1 = (/ 0, 0/)character(len=200) :: l1, l2integer :: i1, i2l1 = "2 2"read(unit=l1,fmt=*) i1, i2write (unit=l2,fmt=*) reshape(source1, shape1, pad1, (/i1, i2/)) ! Invalidend program main! { dg-output "Fortran runtime error: Duplicate value 2 in ORDER argument to RESHAPE intrinsic" }
