* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_18.f03
blob576f931f96909368772f5c0b517fc4c515a7f221
1 ! { dg-do run }
3 ! PR 43207: [OOP] ICE for class pointer => null() initialization
5 ! Original test case by Tobias Burnus <burnus@gcc.gnu.org>
6 ! Modified by Janus Weil <janus@gcc.gnu.org>
8   implicit none
9   type :: parent
10   end type
11   type(parent), target :: t
12   class(parent), pointer :: cp => null()
14   if (associated(cp)) call abort()
15   cp => t
16   if (.not. associated(cp)) call abort()
18 end