blob: 435871ec7799b24c9e2b40bd3323a4b32d33b900 [file] [log] [blame]
! { dg-do compile }
! { dg-options "-w" }
! PR fortran/87991
program p
type t
character(:), pointer :: c
end type
type(t) :: x
allocate (character(3) :: x%c)
data x%c /'abc'/ ! { dg-error "has the pointer attribute" }
end