aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/inline_matmul_23.f90
blob: bb7e8687a1d29e834db6d84ae12fee5a6d859ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-Og -ffrontend-optimize -fcheck=bounds -fdump-tree-optimized" }
! Check that bounds checking is done only before the matrix
! multiplication.

module y
contains
  subroutine x(a,b,c)
    real, dimension(:,:) :: a, b, c
    c = matmul(a,b)
  end subroutine x
end module y
! { dg-final { scan-tree-dump-times "_runtime_error" 3 "optimized" } }