aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/integer_plus.f90
blob: 242835be8d09bc1fa251e86bedb6a8e71946a987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do run }
! PR83560 list-directed formatting of INTEGER is missing plus on output
! when output open with SIGN='PLUS'
character(64) :: astring
i=789
open(unit=10, status='scratch', sign='plus')
write(10,*) i
rewind(10)
read(10,*) astring
close (10)
if (astring.ne.'+789') STOP 1
end