OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [io_constraints_5.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR 38425 I/O: POS= compile-time diagnostics
3
!----------------------------------------------------------
4
character(len=30) :: str
5
open(3,access='stream')
6
 
7
! C919 (R913) If io-unit is not a file-unit-number, the
8
! io-control-spec-list shall not contain a REC= specifier
9
! or a POS= specifier.
10
write(str,*, pos=4) 5 ! { dg-error "incompatible with internal" }
11
 
12
! C927 (R913) If a POS= specifier appears, the
13
! io-control-spec-list shall not contain a REC= specifier.
14
write(3,pos=5,rec=4) 5 ! { dg-error "POS= is not allowed with REC=" }
15
write(3,rec=4,pos=5) 5 ! { dg-error "POS= is not allowed with REC=" }
16
 
17
!Fortran runtime error: REC=specifier not allowed with STREAM access
18
write(3,rec=4) 5
19
!Fortran runtime error: REC=specifier must be positive
20
write(3,rec=-3) 44
21
!Fortran runtime error: POS=specifier must be positive
22
write(3,pos=-4) 44
23
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.