[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr44735.f90
blob3ba7bbad0f646a23c7fff2113ce7b1c5cf68a1f6
1 ! { dg-do run }
3 program main
4 if (bug() /= "abcdefghij") STOP 1
5 contains
6 function bug()
7 character(len=10) :: bug
8 character(len=1), dimension(:), pointer :: p_chars
9 allocate(p_chars(10))
10 p_chars = ['a','b','c','d','e','f','g','h','i','j']
11 forall (i=1:len(bug))
12 bug(i:i) = p_chars(i)
13 end forall
14 deallocate(p_chars)
15 end function bug
16 end program main