diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/f2003_inquire_1.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/f2003_inquire_1.f03 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/f2003_inquire_1.f03 b/gcc/testsuite/gfortran.dg/f2003_inquire_1.f03 new file mode 100644 index 000000000..544a8109a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/f2003_inquire_1.f03 @@ -0,0 +1,21 @@ +! { dg-do run } +! { dg-options "-std=gnu" } +character(25) :: sround, ssign, sasynchronous, sdecimal, sencoding +integer :: vsize, vid +logical :: vpending + +open(10, file='mydata', asynchronous="yes", blank="null", & +& decimal="comma", encoding="utf-8", sign="plus") + +inquire(unit=10, round=sround, sign=ssign, size=vsize, id=vid, & +& pending=vpending, asynchronous=sasynchronous, decimal=sdecimal, & +& encoding=sencoding) + +if (ssign.ne."PLUS") call abort +if (sasynchronous.ne."YES") call abort +if (sdecimal.ne."COMMA") call abort +if (sencoding.ne."UTF-8") call abort +if (vpending) call abort + +close(10, status="delete") +end |