summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/init_flag_9.f90
blob: 512396455bd02e3957ba787756ab08f4906c1fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do run }
! { dg-options "-finit-character=89" }
!
! PR fortran/51800
!

subroutine foo(n)
  character(len=n) :: str
!  print *, str
  if (str /= repeat ('Y', n)) call abort()
end subroutine foo

call foo(3)
call foo(10)
end