PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / matmul_16.f90
blob9def133634478a5215100bd48b1ae1d1fed79e48
1 ! { dg-do run }
2 ! { dg-options "-finline-matmul-limit=0" }
3 ! PR 80975 - this did not zero the result array
4 program bogus_matmul
5 implicit none
6 real :: M(3,0), v(0), w(3)
8 w = 7
9 w = matmul(M,v)
10 if( any(w .ne. 0) ) then
11 call abort
12 end if
13 end program bogus_matmul