Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/bound_5.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! ! PR fortran/38859 ! Wrong bounds simplification ! ! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com> type x integer I end type x type (x) A(0:5, 2:8) integer ida(2) ida = lbound(a) if (any(ida /= (/0,2/))) STOP 1 ida = lbound(a%i) if (any(ida /= (/1,1/))) STOP 2 ida = ubound(a) if (any(ida /= (/5,8/))) STOP 3 ida = ubound(a%i) if (any(ida /= (/6,7/))) STOP 4 end