summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/matmul_rank_1.f90
blob: f111b26018fd19415db2e68054a0573d34a30052 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! { dg-additional-options "-ffrontend-optimize" }
! PR 85044 - used to die on allocating a negative amount of memory.
! Test case by Gerhard Steinmetz.
program p
   real :: a(3,3) = 1.0
   real :: b(33)
   b = matmul(a, a) ! { dg-error "Incompatible ranks" }
end