blob: 4cd2e70e1cb63f04342a149242d41af12dfa8986 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
! { 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
|