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/] [unit_1.f90] - Blame information for rev 378

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! PR40638 Run Time Error: Unit number in I/O statement too large
3
      program main
4
      integer(kind=2) ::  lun, anum
5
      integer(kind=1) ::  looney, bin
6
      lun  = 12
7
      anum = 5
8
      looney = 42
9
      bin = 23
10
      open (lun, status='scratch')
11
      write(lun,*) anum
12
      anum = 0
13
      rewind(lun)
14
      read (lun, *) anum
15
      if (anum.ne.5) call abort
16
      open (looney, status='scratch')
17
      write(looney,*)bin
18
      bin = 0
19
      rewind (looney)
20
      read (looney,*)bin
21
      if (bin.ne.23) call abort
22
      close (lun)
23
      close (looney)
24
      end

powered by: WebSVN 2.1.0

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