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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [inquire_5.f90] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! pr19314 inquire(..position=..) segfaults
3
! test by Thomas.Koenig@online.de
4
!         bdavis9659@comcast.net
5
      implicit none
6
      character*20 chr
7
      open(7,STATUS='SCRATCH')
8
      inquire(7,position=chr)
9
      if (chr.NE.'ASIS') CALL ABORT
10
      close(7)
11
      open(7,STATUS='SCRATCH',ACCESS='DIRECT',RECL=100)
12
      inquire(7,position=chr)
13
      if (chr.NE.'UNDEFINED') CALL ABORT
14
      close(7)
15
      open(7,STATUS='SCRATCH',POSITION='REWIND')
16
      inquire(7,position=chr)
17
      if (chr.NE.'REWIND') CALL ABORT
18
      close(7)
19
      open(7,STATUS='SCRATCH',POSITION='ASIS')
20
      inquire(7,position=chr)
21
      if (chr.NE.'ASIS') CALL ABORT
22
      close(7)
23
      open(7,STATUS='SCRATCH',POSITION='APPEND')
24
      inquire(7,position=chr)
25
      if (chr.NE.'APPEND') CALL ABORT
26
      close(7)
27
      open(7,STATUS='SCRATCH',POSITION='REWIND')
28
      write(7,*)'this is a record written to the file'
29
      inquire(7,position=chr)
30
      if (chr.NE.'ASIS') CALL ABORT
31
      rewind(7)
32
      inquire(7,position=chr)
33
      if (chr.NE.'REWIND') CALL ABORT
34
      close(7)
35
      end

powered by: WebSVN 2.1.0

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