summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/inquire_7.f90
blob: 02e96ab4dcb5215e8909564184b23687457e7446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
! { 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