summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/write_check2.f90
blob: 1447f8d14f915ff175a056fb9c70cf79554e92b0 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! Check keyword checking for specifiers
! PR fortran/29452
  character(len=20) :: str
  write(13,'(a)',advance='yes')  'Hello:'
  write(13,'(a)',advance='no')   'Hello:'
  write(13,'(a)',advance='y')    'Hello:' ! { dg-error "ADVANCE= specifier at \\(1\\) must have value = YES or NO." }
  write(13,'(a)',advance='yet')  'Hello:' ! { dg-error "ADVANCE= specifier at \\(1\\) must have value = YES or NO." }
  write(13,'(a)',advance='yess') 'Hello:' ! { dg-error "ADVANCE= specifier at \\(1\\) must have value = YES or NO." }
  end