diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-27 19:24:44 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-27 19:24:44 +0000 |
commit | 60c59b896e6915c9047effb8949092787f73c0aa (patch) | |
tree | 615d952129d0b1204104c4eb603512153c2d7235 | |
parent | 3f693491fa0f170c129c7cc4787a5908d8d527d7 (diff) | |
download | gcc-60c59b896e6915c9047effb8949092787f73c0aa.tar.gz |
2012-12-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/48976
* gfortran.dg/inquire_15.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194736 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/inquire_15.f90 | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0d97252967a..1237fb9bdf9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-12-27 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR fortran/48976 + * gfortran.dg/inquire_15.f90: New. + 2012-12-27 Sriraman Tallam <tmsriram@google.com> * testsuite/g++.dg/mv1.C: Remove target options. diff --git a/gcc/testsuite/gfortran.dg/inquire_15.f90 b/gcc/testsuite/gfortran.dg/inquire_15.f90 new file mode 100644 index 00000000000..855066328bb --- /dev/null +++ b/gcc/testsuite/gfortran.dg/inquire_15.f90 @@ -0,0 +1,27 @@ +! PR48976 test case by jvdelisle@gcc.gnu.org +character(len=20) :: str +str = "abcdefg" +inquire(file="abcddummy", stream=str) +!print *, "str=",str +if (str /= "UNKNOWN") call abort +inquire(99, stream=str) +!print *, "str=",str +if (str /= "UNKNOWN") call abort +open(99,access="stream") +inquire(99, stream=str) +!print *, "str=",str +if (str /= "YES") goto 10 +close(99) +open(99,access="direct", recl=16) +inquire(99, stream=str) +!print *, "str=",str +if (str /= "NO") goto 10 +close(99) +open(99,access="sequential") +inquire(99, stream=str) +!print *, "str=",str +if (str /= "NO") goto 10 +stop +10 close(99, status="delete") +call abort +end |