c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / deferred_character_34.f90
blob204084128790b0be184ef668036e1fdfff8cf9ea
1 ! { dg-do run }
2 ! PR fortran/90561
3 ! This used to ICE.
4 ! Original test case by Gerhard Steinmetz.
5 program p
6 character(:), allocatable :: z(:)
7 z = [character(2):: 'ab', 'xy']
8 z = z(2)
9 if (any(z /= 'xy')) stop 1
10 end