OpenCores
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/] [transpose_2.f90] - Rev 399

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

! { dg-do run }
! { dg-options "-fbounds-check" }
! { dg-shouldfail "Incorrect extent in return value of TRANSPOSE intrinsic in dimension 1: is 2, should be 3" }
program main
  implicit none
  character(len=10) :: in
  real, dimension(:,:), allocatable :: a,b
  integer :: ax, ay, bx, by

  in = "2 2 3 2"
  read (unit=in,fmt='(4I2)') ax, ay, bx, by
  allocate (a(ax,ay))
  allocate (b(bx,by))
  a = 1.0
  b = 2.1
  b = transpose(a)
end program main
! { dg-output "Fortran runtime error: Incorrect extent in return value of TRANSPOSE intrinsic in dimension 1: is 2, should be 3" }

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.