ieee_9.f90: XFAIL on arm*-*-gnueabi[hf].
[official-gcc.git] / gcc / testsuite / gfortran.dg / io_constraints_12.f90
blob78f11c56345c1d0841412032b91d210096bffc2f
1 ! { dg-do compile }
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)
17 endfile(10, iostat=i)
18 rewind(10, iostat=i)
20 read(*, '(I2)', iostat=i) k
21 read(*, '(I2)', advance='no', size=j) k
23 inquire(iolength=i) "42"
24 inquire(10, iostat=i)
25 inquire(10, number=j)
26 inquire(10, recl=k)
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" }
34 close(10, iostat=i)
36 end