3 ! Test the fix for PR94331
5 ! Contributed by Igor Gayday <igor.gayday@mu.edu>
12 INTEGER, parameter :: n
= 11
16 SUBROUTINE dummyc(x0
) BIND(C
)
17 type(*), dimension(..) :: x0
18 if(LBOUND(x0
,1)/=1) stop 5
19 if(UBOUND(x0
,1)/=n
) stop 6
20 if(rank(x0
)/=1) stop 7
24 type(*), dimension(..) :: x0
33 integer :: before(2), after(2)
35 DOUBLE PRECISION, ALLOCATABLE
:: buf(:)
36 DOUBLE PRECISION :: buf2(n
)
39 before(1) = LBOUND(buf
,1)
40 before(2) = UBOUND(buf
,1)
42 after(1) = LBOUND(buf
,1)
43 after(2) = UBOUND(buf
,1)
46 if (before(1) .NE
. after(1)) stop 1
47 if (before(2) .NE
. after(2)) stop 2
49 before(1) = LBOUND(buf2
,1)
50 before(2) = UBOUND(buf2
,1)
52 after(1) = LBOUND(buf2
,1)
53 after(2) = UBOUND(buf2
,1)
55 if (before(1) .NE
. after(1)) stop 3
56 if (before(2) .NE
. after(2)) stop 4