Debian Codegraph @

gcc/testsuite/gfortran.dg/PR95352.f90

raw
1 ! { dg-do compile }
2 !
3 ! Test the fix for PR95352
4 !
5
6 module ice6_m
7
8 implicit none
9
10 contains
11
12 function ice6_s(a) result(ierr)
13 integer, intent(in) :: a(..)
14
15 integer :: ierr
16
17 integer :: lb
18
19 select rank(a)
20 rank(*)
21 lb = lbound(a, dim=1)
22 if(lbound(a, dim=1)/=lb) ierr = -1
23 end select
24 return
25 end function ice6_s
26
27 end module ice6_m