1 ! { dg-do run { target fd_truncate } }
2 ! Test of the fix to the bug in NIST fm906.for.
3 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
7 open (10, status
="scratch")
9 ! Test that we have not broken the one line form.
11 write (10, *) " ( 0.99 , 9.9 )"
14 if (a
.ne
.(0.99, 9.90)) call abort ()
16 ! Test a new record after the.comma (the original bug).
19 write (10, *) " ( 99.0 ,"
20 write (10, *) " 999.0 )"
23 if (a
.ne
.(99.0, 999.0)) call abort ()
25 ! Test a new record before the.comma
28 write (10, *) " ( 0.99 "
29 write (10, *) " , 9.9 )"
32 if (a
.ne
.(0.99, 9.90)) call abort ()
34 ! Test a new records before and after the.comma
37 write (10, *) " ( 99.0 "
39 write (10, *) " 999.0 )"
42 if (a
.ne
.(99.0, 999.0)) call abort ()
44 ! Test a new records and blank records before and after the.comma
47 write (10, *) " ( 0.99 "
51 write (10, *) " 9.9 )"
54 if (a
.ne
.(0.99, 9.9)) call abort ()
57 end program complex_read