re PR fortran/83548 (Compilation Error using logical function in parameter)
[official-gcc.git] / gcc / testsuite / gfortran.dg / inline_matmul_18.f90
blobc846733c8c24eca123782625f864508b213df12f
1 ! { dg-do run }
2 ! { dg-options "-O -finline-matmul-limit=100 -fdump-tree-optimized" }
3 ! PR 80975 - this did not zero the result array in the library version;
4 ! make sure this also doesn't happen in the inline version.
5 program bogus_matmul
6 implicit none
7 real :: M(3,0), v(0), w(3)
9 w = 7
10 w = matmul(M,v)
11 if( any(w .ne. 0) ) then
12 call abort
13 end if
14 end program bogus_matmul
15 ! { dg-final { scan-tree-dump-times "matmul_r4" 0 "optimized" } }