c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / assignment_4.f90
blob37fdbca9178fe6daf5282c8be2ff9f9e89329f61
1 ! { dg-do compile }
2 ! { dg-options "-Wall" }
4 ! PR 55855: [OOP] incorrect warning with procedure pointer component on pointer-valued base object
6 ! Contributed by Andrew Benson <abensonca@gmail.com>
8 implicit none
9 type :: event
10 procedure(logical), pointer, nopass :: task
11 end type event
12 logical :: r
13 type(event), pointer :: myEvent
14 allocate(myEvent)
15 r=myEvent%task() ! { dg-warning "uninitialized" }
16 end