Debian Codegraph @

gcc/testsuite/gfortran.dg/pr91862.f90

raw
1 ! { dg-do compile }
2 !
3 ! Check that PR91862 remains fixed by patch for PRs 96100/101.
4 !
5 ! Contributed by Gerhard Steinmetz <>[email protected]>
6 !
7 call foo
8 call bar
9 contains
10
11 subroutine foo
12 integer :: i
13 character(3) :: a(3) = 'abc'
14 character(1) :: b(1)
15 b = [([ (a(1)(i:1), i=1,1) ])]
16 print *, b
17 end subroutine
18
19 subroutine bar
20 integer :: i
21 character(3) :: a(3) = 'abc'
22 character(1) :: b(1)
23 b = [([ (a(1)(1:i), i=1,1) ])]
24 print *, b
25 end subroutine
26 end