2 ! { dg-options "-fbounds-check -fno-realloc-lhs" }
3 ! { dg-shouldfail "Fortran runtime error: Incorrect extent in return array in MATMUL intrinsic: is 3, should be 2" }
5 real, dimension(2,3) :: a
6 real, dimension(3) :: b
7 real, dimension(:), allocatable
:: ret
11 ret
= matmul(a
,b
) ! This is OK
14 ret
= matmul(a
,b
) ! This should throw an error.
16 ! { dg-output "Fortran runtime error: Incorrect extent in return array in MATMUL intrinsic: is 3, should be 2" }