summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/inline_matmul_5.f90
blob: bed1cb6a0afc946cb78e0ab3e7f86293fdaaf2e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do  run }
! { dg-options "-ffrontend-optimize" }
program main

  real, dimension(2,2) :: a,b,c

  data a /2., 4., 8., 16. /
  data b /3., 9., 27., 81./

  c = matmul(a,b)
  a = matmul(a,b)
  if (any(a /= c)) call abort
end program main