Plugins: Add label-text.h to CPPLIB_H so it will be installed [PR115288]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr87991.f90
blob435871ec7799b24c9e2b40bd3323a4b32d33b900
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