Commit 1cef01a0 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR fortran/43832 (OPEN statement not diagnosing missing unit number)

	PR fortran/43832
	* gfortran.dg/fgetc_3.f90: Delete bogus test.

From-SVN: r158688
parent 01d42eb5
2010-04-24 Hans-Peter Nilsson <hp@axis.com>
PR fortran/43832
* gfortran.dg/fgetc_3.f90: Delete bogus test.
2010-04-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/43832
......
! Testcase for the FGETC and FPUTC intrinsics
! { dg-do compile }
character(len=5) s
integer st
s = "12345"
open(status="scratch")
write(*,"(A)") "abcde"
rewind(10)
st = fget(s)
if ((st /= 0) .or. (s /= "a ")) call abort
st = fget(s)
close(10)
open(status="scratch")
s = "12345"
st = fput(s)
if (st /= 0) call abort
st = fput("2")
if (st /= 0) call abort
st = fput("3 ")
if (st /= 0) call abort
rewind(10)
st = fget(s)
if (s(1:1) /= "1") call abort
st = fget(s)
if (s(1:1) /= "2") call abort
st = fget(s)
if ((s(1:1) /= "3") .or. (st /= 0)) call abort
st = fget(s)
if (st /= -1) call abort
close (10)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment