PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr71895.f90
blobe5d40026d03ae5f2ee0e743020245f4b49bc6206
1 ! { dg-do compile }
2 program p
3 type t
4 integer :: n
5 end type
6 type(t) :: x
7 class(t) :: y ! { dg-error "must be dummy, allocatable or pointer" }
8 print *, extends_type_of(x, y)
9 print *, extends_type_of(y, x)
10 end