RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / matmul_5.f90
blob79de7bf8079ff1b35e81ef4bf52c78c3c6ec24c2
1 ! { dg-do run }
2 ! { dg-shouldfail "dimension of array B incorrect in MATMUL intrinsic" }
3 ! { dg-options "-finline-matmul-limit=0" }
4 program main
5 real, dimension(:,:), allocatable :: a
6 real, dimension(:), allocatable :: b
7 allocate (a(2,2), b(3))
8 call random_number(a)
9 call random_number(b)
10 print *,matmul(a,b)
11 end program main
12 ! { dg-output "Fortran runtime error: Incorrect extent in argument B in MATMUL intrinsic in dimension 1" }