2 ! Check that derived type extension is compatible with renaming
3 ! the parent type and that allocatable components are OK. At
4 ! the same time, private type and components are checked.
6 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
10 real, allocatable :: x(:)
11 integer, private :: ia = 0
15 real, allocatable :: x(:)
19 function set_b () result (res)
25 subroutine check_b (arg)
27 if (any (arg%x /= [10.0, 20.0])) call abort
28 if (arg%i /= 1) call abort
43 p = f (x = [1.0, 2.0], if = 3)
44 if (any (p%e%x /= [1.0, 2.0])) call abort
48 q = d (b = set_b (), id = 99)