PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / inquire_10.f90
blobd8cf6c3653128db471903adbe33c4d72346b7260
1 ! { dg-do run { target { ! newlib } } }
2 character(len=800) :: cwd
3 integer :: unit
5 call getcwd(cwd)
7 open(file='cseq', unit=23)
8 inquire(file='cseq',number=unit)
9 if (unit /= 23) STOP 1
10 inquire(file=trim(cwd) // '/cseq',number=unit)
11 if (unit /= 23) STOP 2
13 close(unit=23, status = 'delete')
15 inquire(file='foo/../cseq2',number=unit)
16 if (unit >= 0) STOP 3
17 inquire(file='cseq2',number=unit)
18 if (unit >= 0) STOP 4
19 end