1! { dg-do  run }
2! { dg-options "-finline-matmul-limit=0" }
3! PR 80975 - this did not zero the result array
4program bogus_matmul
5  implicit none
6  real :: M(3,0), v(0), w(3)
7
8  w = 7
9  w = matmul(M,v)
10  if( any(w .ne. 0) ) then
11    STOP 1
12  end if
13end program bogus_matmul
14