aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/advance_3.f90
blob: 7a361d27b1eedc84bc5c6eac409758da2a64742b (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
subroutine foo
  real :: a
  a = 1
  write(*, '(a)', advance=a) "hello world" ! { dg-error "must be of type CHARACTER" }
end subroutine foo
subroutine bar
  write(*, '(a)', advance=5.) "hello world" ! { dg-error "must be of type CHARACTER" }
end subroutine bar