2 ! { dg-options "-fdump-tree-original" }
12 type(t
), save, allocatable
:: x
13 class(t
), save,allocatable
:: y
14 if (.not
. same_type_as(x
,y
)) call abort()
17 type(t
), save, allocatable
:: a(:)
18 class(t
), save,allocatable
:: b(:)
19 if (.not
. same_type_as(a
,b
)) call abort()
28 ! { dg-final { scan-tree-dump-times "static struct __class_m_T_1_0a b = {._data={.data=0B}, ._vptr=&__vtab_m_T};" 1 "original" } }
29 ! { dg-final { scan-tree-dump-times "static struct __class_m_T_a y = {._data=0B, ._vptr=&__vtab_m_T};" 1 "original" } }