arm: Add .type and .size to __gnu_cmse_nonsecure_call [PR115360]
[official-gcc.git] / gcc / testsuite / gfortran.dg / matmul_bounds_16.f
blob50e91ae4958af03cad5327f5623f7c9d2c6f37a0
1 C { dg-do run }
2 C { dg-options "-fdump-tree-optimized -fcheck=bounds -fblas-matmul-limit=1 -O -fexternal-blas" }
3 C { dg-shouldfail "Fortran runtime error: Incorrect extent in argument B in MATMUL intrinsic in dimension 1" }
4 C { dg-additional-sources blas_gemm_routines.f }
6 program main
7 character(len=20) :: line
8 integer :: n, m
9 real, dimension(3,2) :: a
10 real, dimension(:,:), allocatable :: b
11 real, dimension(:,:), allocatable :: ret
12 a = 1.0
13 line = '4 3'
14 read (unit=line,fmt=*) n, m
15 allocate (b(n,m))
16 b = 2.3
17 ret = matmul(transpose(a),b) ! This should throw an error.
18 end
19 ! { dg-output "Fortran runtime error: Incorrect extent in argument B in MATMUL intrinsic in dimension 1.*" }
20 ! { dg-final { scan-tree-dump-times "_gfortran_matmul" 0 "optimized" } }