annotate gcc/testsuite/gfortran.dg/inquire_9.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! PR fortran/24774
kono
parents:
diff changeset
2 ! { dg-do run }
kono
parents:
diff changeset
3 logical :: l
kono
parents:
diff changeset
4 l = .true.
kono
parents:
diff changeset
5 inquire (file='inquire_9 file that should not exist', exist=l)
kono
parents:
diff changeset
6 if (l) call abort
kono
parents:
diff changeset
7 l = .true.
kono
parents:
diff changeset
8 inquire (unit=-16, exist=l)
kono
parents:
diff changeset
9 if (l) call abort
kono
parents:
diff changeset
10 open (unit=16, file='inquire_9.tst')
kono
parents:
diff changeset
11 write (unit=16, fmt='(a)') 'Test'
kono
parents:
diff changeset
12 l = .false.
kono
parents:
diff changeset
13 inquire (unit=16, exist=l)
kono
parents:
diff changeset
14 if (.not.l) call abort
kono
parents:
diff changeset
15 l = .false.
kono
parents:
diff changeset
16 inquire (file='inquire_9.tst', exist=l)
kono
parents:
diff changeset
17 if (.not.l) call abort
kono
parents:
diff changeset
18 close (unit=16)
kono
parents:
diff changeset
19 l = .false.
kono
parents:
diff changeset
20 inquire (file='inquire_9.tst', exist=l)
kono
parents:
diff changeset
21 if (.not.l) call abort
kono
parents:
diff changeset
22 open (unit=16, file='inquire_9.tst')
kono
parents:
diff changeset
23 close (unit=16, status='delete')
kono
parents:
diff changeset
24 end