PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / advance_1.f90
blobe41e2b13612d09b2a78beb4c4b868c637942dc9a
1 ! { dg-do run }
2 ! PR25463 Check that advance='no' works correctly.
3 ! Derived from example given in PR by Thomas Koenig
4 ! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
5 program pr25463
6 character(10) :: str
7 write (10,'(A)',advance="no") 'ab'
8 write (10,'(TL2,A)') 'c'
9 rewind (10)
10 read (10, '(a)') str
11 if (str.ne.'abc') STOP 1
12 close (10, status='delete')
13 end