1 !RUN: %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s
18 type, extends(t1
) :: t4
21 !CHECK-NOT: 'scalar' of derived type 't1'
23 !CHECK-NOT: 'vector' of derived type 't1'
25 !CHECK: 'matrix' of derived type 't1' does not have a FINAL subroutine for its rank (2)
26 type(t1
) :: matrix(2, 2)
35 impure elemental
subroutine t2fe(x
)
36 type(t2
), intent(in out
) :: x
43 subroutine test
! *not* a main program, since they don't finalize locals
45 !CHECK-NOT: 'scalar1' of derived type 't1'
47 !CHECK-NOT: 'vector1' of derived type 't1'
48 type(t1
) :: vector1(2)
49 !CHECK: 'matrix1' of derived type 't1' does not have a FINAL subroutine for its rank (2)
50 type(t1
) :: matrix1(2,2)
51 !CHECK-NOT: 'scalar2' of derived type 't2'
53 !CHECK-NOT: 'vector2' of derived type 't2'
54 type(t2
) :: vector2(2)
55 !CHECK-NOT: 'matrix2' of derived type 't2'
56 type(t2
) :: matrix2(2,2)
57 !CHECK-NOT: 'scalar3' of derived type 't3'
59 !CHECK-NOT: 'vector3' of derived type 't3'
60 type(t3
) :: vector3(2)
61 !CHECK-NOT: 'matrix3' of derived type 't2'
62 type(t3
) :: matrix3(2,2)
63 !CHECK-NOT: 'scalar4' of derived type 't4'
65 !CHECK-NOT: 'vector4' of derived type 't4'
66 type(t4
) :: vector4(2)
67 !CHECK: 'matrix4' of derived type 't4' extended from 't1' does not have a FINAL subroutine for its rank (2)
68 type(t4
) :: matrix4(2,2)