aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/compile/pr66352.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.fortran-torture/compile/pr66352.f90')
-rw-r--r--gcc/testsuite/gfortran.fortran-torture/compile/pr66352.f9018
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.fortran-torture/compile/pr66352.f90 b/gcc/testsuite/gfortran.fortran-torture/compile/pr66352.f90
new file mode 100644
index 00000000000..7d3c74acd96
--- /dev/null
+++ b/gcc/testsuite/gfortran.fortran-torture/compile/pr66352.f90
@@ -0,0 +1,18 @@
+! { dg-additional-options "-fprofile-generate" }
+ SUBROUTINE matmul_test ( ntim,len)
+ INTEGER, PARAMETER :: dp=8
+ REAL(KIND=dp), ALLOCATABLE, DIMENSION(:, :) :: ma, mb, mc
+ INTEGER :: siz,len, ntim
+ DO i = 5, siz, 2
+ len = 2**i + 1
+ ALLOCATE ( ma ( len, len ), STAT = ierr )
+ IF ( ierr /= 0 ) EXIT
+ ALLOCATE ( mb ( len, len ), STAT = ierr )
+ IF ( ierr /= 0 ) EXIT
+ ALLOCATE ( mc ( len, len ), STAT = ierr )
+ IF ( ierr /= 0 ) EXIT
+ DO j = 1, ntim
+ mc = MATMUL ( ma, mb )
+ END DO
+ END DO
+ END SUBROUTINE matmul_test