☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gfortran.dg
/
pr87991.f90
☽
☼
gcc/testsuite/gfortran.dg/pr87991.f90
code
plain
raw
1
! { dg-do compile }
2
! { dg-options "-w" }
3
! PR fortran/87991
4
program p
5
type t
6
character(:), pointer :: c
7
end type
8
type(t) :: x
9
allocate (character(3) :: x%c)
10
data x%c /'abc'/ ! { dg-error "has the pointer attribute" }
11
end