[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / pointer_assign_7.f90
blobc85dc72c8ff65fa630668608bf655ca644485838
1 ! { dg-do compile }
3 ! PR 39931: ICE on invalid Fortran 95 code (bad pointer assignment)
5 ! Contributed by Thomas Orgis <thomas.orgis@awi.de>
7 program point_of_no_return
9 implicit none
11 type face_t
12 integer :: bla
13 end type
15 integer, pointer :: blu
16 type(face_t), pointer :: face
18 allocate(face)
19 allocate(blu)
21 face%bla => blu ! { dg-error "Non-POINTER in pointer association context" }
23 end program