Debian Codegraph @

gcc/testsuite/gfortran.dg/inquire_7.f90

raw
1 ! { dg-do run }
2 ! pr 19647 / segfault on inquire(..pad=..)
3 ! [email protected]
4 ! [email protected]
5 program main
6 character(len=10) delim
7 ! quote
8 open(10,delim='quote',status='SCRATCH')
9 inquire(10,delim=delim)
10 close(10)
11 if (delim .ne. 'QUOTE') STOP 1
12 ! apostrophe
13 open(10,delim='apostrophe',status='SCRATCH')
14 inquire(10,delim=delim)
15 close(10)
16 if (delim .ne. 'APOSTROPHE') STOP 2
17 ! none
18 open(10,status='SCRATCH')
19 inquire(10,delim=delim)
20 close(10)
21 if (delim .ne. 'NONE') STOP 3
22 ! undefined
23 open(10,form='UNFORMATTED',status='SCRATCH')
24 inquire(10,delim=delim)
25 close(10)
26 if (delim .ne. 'UNDEFINED') STOP 4
27 end program main