aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/io_constraints_10.f90
blob: bb756aa2bc83ed24020d3e9858eb9df2c430f88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-do compile }
! { dg-options "-std=f95" }
!
! PR fortran/52335
!

integer :: lun
character(len=20) :: str

! VALID Fortran 95:
open(unit=lun,file=str,delim='apostrophe',status='old')
inquire(lun, delim=str)

! Fortran 2003:
write(*,*, delim='apostrophe') 'a' ! { dg-error "Fortran 2003: DELIM= at .1. not allowed in Fortran 95" }
end