annotate gcc/testsuite/gfortran.dg/inquire_9.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
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)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
6 if (l) STOP 1
111
kono
parents:
diff changeset
7 l = .true.
kono
parents:
diff changeset
8 inquire (unit=-16, exist=l)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
9 if (l) STOP 2
111
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)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
14 if (.not.l) STOP 3
111
kono
parents:
diff changeset
15 l = .false.
kono
parents:
diff changeset
16 inquire (file='inquire_9.tst', exist=l)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
17 if (.not.l) STOP 4
111
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)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
21 if (.not.l) STOP 5
111
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