diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/repeat_6.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/repeat_6.f90 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/repeat_6.f90 b/gcc/testsuite/gfortran.dg/repeat_6.f90 new file mode 100644 index 000000000..308941f9a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/repeat_6.f90 @@ -0,0 +1,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 |