2009-10-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / zero_length_2.f90
blob2cc3f2938ca121f43d4c59f7524ade9cd5ae8c43
1 ! { dg-do run }
2 character(len=1) :: s
3 character(len=0) :: s0
4 s = " "
5 s0 = ""
6 call bar ("")
7 call bar (s)
8 call bar (s0)
9 call bar (trim(s))
10 call bar (min(s0,s0))
11 contains
12 subroutine bar (s)
13 character(len=*), optional :: s
14 if (.not. present (S)) call abort
15 end subroutine bar
16 end