2 ! PR48618 - Negative unit number in OPEN(...) is sometimes allowed
4 ! Test originally from Janne Blomqvist in PR:
5 ! http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48618
12 open(newunit
=id
, file
="foo_open_negative_unit_1.txt", iostat
=ios
)
15 open(id
, file
="bar.txt", iostat
=ios
)
18 close(id
, status
="delete")
20 open(unit
=10, file
="foo_open_negative_unit_1.txt", status
="old", iostat
=ios
)
23 close(10, status
="delete")
25 open(-10, file
="foo_open_negative_unit_1.txt", iostat
=ios
)
28 inquire(file
="foo_open_negative_unit_1.txt", exist
=l
)