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.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [inquire_7.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }
! pr 19647 / segfault on inquire(..pad=..)
! Thomas.Koenig@online.de
! bdavis9659@comcast.net
program main
character(len=10) delim
! quote
open(10,delim='quote',status='SCRATCH')
inquire(10,delim=delim)
close(10)
if (delim .ne. 'QUOTE') call abort
! apostrophe
open(10,delim='apostrophe',status='SCRATCH')
inquire(10,delim=delim)
close(10)
if (delim .ne. 'APOSTROPHE') call abort
! none
open(10,status='SCRATCH')
inquire(10,delim=delim)
close(10)
if (delim .ne. 'NONE') call abort
! undefined
open(10,form='UNFORMATTED',status='SCRATCH')
inquire(10,delim=delim)
close(10)
if (delim .ne. 'UNDEFINED') call abort
end program main