hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / merge_char_1.f90
blobbd4c64f69c85d2a5124661426079f2ae5fb520dc
1 ! { dg-do run }
2 ! { dg-options "-std=legacy" }
4 ! PR 15327
5 ! The merge intrinsic didn't work for strings
6 character*2 :: c(2)
7 logical :: ll(2)
9 ll = (/ .TRUE., .FALSE. /)
10 c = merge( (/ "AA", "BB" /), (/ "CC", "DD" /), ll )
11 if (c(1).ne."AA" .or. c(2).ne."DD") STOP 1
13 c = ""
14 c = merge( (/ "AA", "BB" /), (/ "CC", "DD" /), (/ .TRUE., .FALSE. /) )
15 if (c(1).ne."AA" .or. c(2).ne."DD") STOP 2
16 end