RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr70673.f90
blob6eb9e7fa1b73b8e795381bfbe4c86d5f07a5553a
1 ! { dg-do run }
3 ! Test the fix for PR70673
5 ! Contributed by David Kinniburgh <davidgkinniburgh@yahoo.co.uk>
7 module m
8 contains
9 subroutine s(inp)
10 character(*), intent(in) :: inp
11 character(:), allocatable :: a
12 a = inp
13 a = a ! This used to ICE too
14 if ((len (a) .ne. 5) .or. (a .ne. "hello")) STOP 1
15 a = a(2:3) ! Make sure that temporary creation is not broken.
16 if ((len (a) .ne. 2) .or. (a .ne. "el")) STOP 2
17 deallocate (a)
18 end subroutine s
19 end module m
21 use m
22 call s("hello")
23 end