summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/write_invalid_format.f90
blob: 8de7bc25ced9d84b8d0c5dafdc18bcf597ab5705 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! PR fortran/35582 - ICE on invalid format
! Testcase contributed by
! Leandro Martinez <leandromartinez DOT spam AT gmail DOT com> 

  real, parameter  :: a = 1.
  write(*,a) 'test'           ! { dg-error "expression in FORMAT tag" }
end