diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/merge_char_const.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/merge_char_const.f90 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/merge_char_const.f90 b/gcc/testsuite/gfortran.dg/merge_char_const.f90 new file mode 100644 index 000000000..32c87f510 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/merge_char_const.f90 @@ -0,0 +1,13 @@ +! { dg-do run } +! { dg-options "-O0" } +! This tests the patch for PR24311 in which the PRINT statement would +! ICE on trying to print a MERGE statement with character constants +! for the first two arguments. +! +! Contributed by Paul Thomas <pault@gcc.gnu.org> +! + integer, dimension(6) :: i = (/1,0,0,1,1,0/) + print '(6a1)', Merge ("a", "b", i == 1) ! { dg-output "abbaab" } + end + + |