OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [negative_unit.f] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
!
3
! PR libfortran/20660 and other bugs (not filed in bugzilla) relating
4
! to negative units
5
!
6
! Bugs submitted by Walt Brainerd
7
      integer i
8
      logical l
9
 
10
      i = 0
11
! gfortran created a 'fort.-1' file and wrote "Hello" in it
12
      write (unit=-1, fmt=*, iostat=i) "Hello"
13
      if (i <= 0) call abort
14
 
15
      i = 0
16
      open (unit=-11, file="xxx", iostat=i)
17
      if (i <= 0) call abort
18
 
19
      inquire (unit=-42, exist=l)
20
      if (l) call abort
21
 
22
      end

powered by: WebSVN 2.1.0

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