gcc/testsuite/gfortran.dg/io_constraints_10.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-std=f95" } |
| 3 | ! |
| 4 | ! PR fortran/52335 |
| 5 | ! |
| 6 | |
| 7 | integer :: lun |
| 8 | character(len=20) :: str |
| 9 | |
| 10 | ! VALID Fortran 95: |
| 11 | open(unit=lun,file=str,delim='apostrophe',status='old') |
| 12 | inquire(lun, delim=str) |
| 13 | |
| 14 | ! Fortran 2003: |
| 15 | write(*,*, delim='apostrophe') 'a' ! { dg-error "Fortran 2003: DELIM= at .1. not allowed in Fortran 95" } |
| 16 | end |