Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/parameter_array_section_2.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! { dg-options "-O" } ! Test the fix for PR31011 in which the length of the array sections ! with stride other than unity were incorrectly calculated. ! ! Contributed by <terry@chem.gu.se> ! program PotentialMatrix implicit none real(kind=8),dimension(2),parameter::v2=(/1,2/) real(kind=8),dimension(4),parameter::v4=(/1,2,3,4/) if (any (v2*v4(1:3:2) .ne. (/1,6/))) call abort () if (any (v2*v4(3:1:-2) .ne. (/3,2/))) call abort () end