[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / extends_type_of_4.f90
blob6437332238734a2b5ce4eb016da7b2099ab63202
1 ! { dg-do compile }
2 ! PR fortran/106121 - ICE in gfc_simplify_extends_type_of
3 ! Contributed by G.Steinmetz
5 program p
6 type t
7 end type
8 type(t) :: x
9 class(t) :: y ! { dg-error "dummy, allocatable or pointer" }
10 print *, extends_type_of (x, y)
11 end
13 subroutine s
14 type t
15 integer :: i
16 end type
17 type(t) :: x
18 class(t) :: y ! { dg-error "dummy, allocatable or pointer" }
19 stop extends_type_of (x, y) ! { dg-error "STOP code" }
20 end