Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gfortran.dg/inline_matmul_13.f90 @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/gfortran.dg/inline_matmul_13.f90 Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/testsuite/gfortran.dg/inline_matmul_13.f90 Thu Oct 25 07:37:49 2018 +0900 @@ -26,22 +26,22 @@ -229., 364., -388., 267., -424., 456./ c = matmul(a,transpose(b)) - if (sum(c-cres)>1e-4) call abort + if (sum(c-cres)>1e-4) STOP 1 call mm1 (a, b, c) - if (sum(c-cres)>1e-4) call abort + if (sum(c-cres)>1e-4) STOP 2 ! Unallocated calloc = matmul(a,transpose(b)) ! { dg-warning "Code for reallocating the allocatable array" } - if (any(shape(c) /= shape(calloc))) call abort - if (sum(calloc-cres)>1e-4) call abort + if (any(shape(c) /= shape(calloc))) STOP 3 + if (sum(calloc-cres)>1e-4) STOP 4 deallocate(calloc) ! Allocated to wrong shape allocate (calloc(10,10)) calloc = matmul(a,transpose(b)) ! { dg-warning "Code for reallocating the allocatable array" } - if (any(shape(c) /= shape(calloc))) call abort - if (sum(calloc-cres)>1e-4) call abort + if (any(shape(c) /= shape(calloc))) STOP 5 + if (sum(calloc-cres)>1e-4) STOP 6 deallocate(calloc) end program main -! { dg-final { scan-tree-dump-times "_gfortran_matmul" 0 "original" } } +! { dg-final { scan-tree-dump-times "_gfortran_matmul" 1 "original" } }