summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gfortran.dg/write_invalid_format.f90
blob: fb60313ef07443abf4a9f4d01542b420ff73a7df (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

OpenPOWER on IntegriCloud