gcc/testsuite/gfortran.dg/dependency_59.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! PR 95812 - this caused an ICE. |
| 3 | ! Test case by Jakub Jelinek. |
| 4 | |
| 5 | module test |
| 6 | contains |
| 7 | subroutine foo() |
| 8 | integer :: a(3) |
| 9 | a = 1 |
| 10 | print *, matmul(1*reshape(a,(/3,1/)), reshape((/1,1,1/),(/1,3/))) |
| 11 | end subroutine foo |
| 12 | subroutine bar() |
| 13 | call foo() |
| 14 | end subroutine bar |
| 15 | end module test |