AArch64: correct constraint on Upl early clobber alternatives
[official-gcc.git] / gcc / testsuite / gfortran.dg / pointer_init_8.f90
blob2e77b5cb58e63a5139f32a29ba3c77d44c823b80
1 ! { dg-do run }
3 ! PR 57306: [OOP] ICE on valid with class pointer initialization
5 ! Contributed by Andrew Benson <abensonca@gmail.com>
7 module m
8 type :: c
9 end type c
10 type, extends(c) :: d
11 end type d
12 type(c), target :: x
13 type(d), target :: y
14 end module m
16 use m
17 class(c), pointer :: px => x
18 class(c), pointer :: py => y
20 if (.not. associated(px, x)) STOP 1
21 if (.not. same_type_as(px, x)) STOP 2
22 if (.not. associated(py, y)) STOP 3
23 if (.not. same_type_as(py, y)) STOP 4
24 end