2 ! { dg-options "-std=f2003" }
4 ! Test our conformance to item 4.9 ("Kind type parameters of integer
5 ! specifiers") of the Fortran 2003 status document at
6 ! ftp://ftp.nag.co.uk/sc22wg5/N1551-N1600/N1579.pdf
8 ! The non-default integer variables are allowed since Fortran 2003.
9 ! The non-default logical variables are allowed since Fortran 2008.
11 integer(kind
=8) :: i
, j
, k
, n
12 logical(kind
=8) :: l1
, l2
, l3
14 open(10, status
="scratch", iostat
=i
)
16 backspace(10, iostat
=i
)
20 read(*, '(I2)', iostat
=i
) k
21 read(*, '(I2)', advance
='no', size
=j
) k
23 inquire(iolength
=i
) "42"
27 inquire(10, nextrec
=n
)
29 inquire(10, exist
=l1
) ! { dg-error "Non-default LOGICAL kind" }
30 inquire(10, named
=l3
) ! { dg-error "Non-default LOGICAL kind" }
31 inquire(10, opened
=l2
) ! { dg-error "Non-default LOGICAL kind" }
32 inquire(10, pending
=l2
) ! { dg-error "Non-default LOGICAL kind" }