aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/repeat_6.f90
blob: c2426b1374a7757cc48c555dc4ec46935f2557cf (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") STOP 1
end