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

Subversion Repositories openrisc_me

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
!
3
! PR libfortran/20660 and other bugs (not filed in bugzilla) relating
4
! to negative units
5
! PR 33055 Runtime error in INQUIRE unit existance with -fdefault-integer-8
6
! Test case update by Jerry DeLisle <jvdelisle@gcc.gnu.org>
7
!
8
! Bugs submitted by Walt Brainerd
9
      integer i,j
10
      logical l
11
 
12
      i = -1
13
! gfortran created a 'fort.-1' file and wrote "Hello" in it
14
      write (unit=i, fmt=*, iostat=j) "Hello"
15
      if (j <= 0) call abort
16
 
17
      i = -11
18
      open (unit=i, file="xxx", iostat=j)
19
      if (j <= 0) call abort
20
 
21
      i = -42
22
      inquire (unit=i, exist=l)
23
      if (l) call abort
24
      end

powered by: WebSVN 2.1.0

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