Debian Codegraph @

gcc/testsuite/gfortran.dg/deferred_character_36.f90

raw
1 ! { dg-do run }
2 !
3 ! Test the fix for PR93833, which ICEd as shown.
4 !
5 ! Contributed by Gerhard Steinmetz <[email protected]>
6 !
7 program p
8 character(:), allocatable :: c
9 c = "wxyz"
10 contains
11 subroutine s
12 associate (y => [c])
13 if (any(y /= [c])) stop 1
14 end associate
15 end
16 end