summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/write_check.f90
blob: 4172303926a3ca3b2d338a8e4e60fca9bdb3bd45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-do run }
! { dg-shouldfail "Compile-time specifier checking" }
! Check keyword checking for specifiers
! PR fortran/29452
program test
  implicit none
  character(len=5) :: str
  str = 'yes'
  write(*,'(a)',advance=str) ''
  str = 'no'
  write(*,'(a)',advance=str) ''
  str = 'NOT'
  write(*,'(a)',advance=str) ''
end program test
! { dg-output "At line 13 of file.*" }
! { dg-output "Bad ADVANCE parameter in data transfer statement" }