PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / matmul_rank_1.f90
blobf111b26018fd19415db2e68054a0573d34a30052
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