summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/repeat_6.f90
blob: 308941f9a2dbfa66060305867025416bc4ae7868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do run }
!
! PR34559 -- ICE on empty string literals
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
!

  character(len=200) :: string = "a" // repeat ("", 3)       &
                                     // repeat ("xxx", 0)    &
                                     // repeat ("string", 2)

  if (string /= "astringstring") CALL abort()
end