diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/open_status_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/open_status_3.f90 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/open_status_3.f90 b/gcc/testsuite/gfortran.dg/open_status_3.f90 new file mode 100644 index 000000000..e64561952 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/open_status_3.f90 @@ -0,0 +1,11 @@ +! { dg-do run } +! PR27704 Incorrect runtime error on multiple OPEN. +! Test case contribyted by Jerry DeLisle <jvdelisle@gcc.gnu.org> + OPEN(8, FORM = 'unformatted', STATUS = 'scratch') + OPEN(8, FORM = 'unformatted', status = 'scratch') + close(8) + open(8) + open(8, status = 'old') + close(8, status="delete") + end + |