gcc/testsuite/gfortran.dg/inline_matmul_18.f90
raw| 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) |
| 8 | |
| 9 | w = 7 |
| 10 | w = matmul(M,v) |
| 11 | if( any(w .ne. 0) ) then |
| 12 | STOP 1 |
| 13 | end if |
| 14 | end program bogus_matmul |
| 15 | ! { dg-final { scan-tree-dump-times "matmul_r4" 0 "optimized" } } |
| 16 |