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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [matmul_bounds_4.f90] - Blame information for rev 302

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! { dg-options "-fbounds-check" }
3
! { dg-shouldfail "Fortran runtime error: Incorrect extent in return array in MATMUL intrinsic: is 3, should be 2" }
4
program main
5
  real, dimension(3) :: a
6
  real, dimension(3,2) :: b
7
  real, dimension(:), allocatable :: ret
8
  allocate (ret(2))
9
  a = 1.0
10
  b = 2.3
11
  ret = matmul(a,b)  ! This is OK
12
  deallocate(ret)
13
  allocate(ret(3))
14
  ret = matmul(a,b)  ! This should throw an error.
15
end program main
16
! { dg-output "Fortran runtime error: Incorrect extent in return array in MATMUL intrinsic: is 3, should be 2" }

powered by: WebSVN 2.1.0

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