summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/initialization_15.f90
blob: a3eb1b9d87b7ed1e922e48d1c9f1e8f9b4a13ab0 (plain)
1
2
3
4
5
6
7
! { dg-do compile }
! Test by Dominique d'Humieres (PR 33957)
function bug(i) result(c)
  integer, pointer :: i
  character(len=merge(1,2, associated(i))) :: c
  c = ""
end function bug