blob: 7a361d27b1eedc84bc5c6eac409758da2a64742b [file] [log] [blame]
! { 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