Debian Codegraph @

gcc/testsuite/gfortran.dg/matmul_rank_1.f90

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