summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/merge_char_1.f90
blob: 5974e8c06c389387cdaa230d60717b104675d57f (plain)
1
2
3
4
5
6
7
8
9
! { dg-do run }
! { dg-options "-std=legacy" }
!
! PR 15327
! The merge intrinsic didn't work for strings
character*2 :: c(2)
c = merge( (/ "AA", "BB" /), (/ "CC", "DD" /), (/ .TRUE., .FALSE. /) )
if (c(1).ne."AA" .or. c(2).ne."DD") call abort ()
end