2 ! { dg-options "-fbounds-check -ffrontend-optimize" }
3 ! { dg-shouldfail "Fortran runtime error: Incorrect extent in argument B in MATMUL intrnisic for dimension 2: is 1, should be 2" }
7 subroutine mmul(c
, a
, b
)
8 real, dimension(:,:), intent(in
) :: a
,b
9 real, dimension(:,:), intent(out
) :: c
10 c
= matmul(a
,transpose(b
))
16 integer, parameter :: n
= 3, m
=4, cnt
=2
17 real, dimension(n
,cnt
) :: a
18 real, dimension(m
,cnt
-1) :: b
19 real, dimension(n
,m
) :: c