3 ! Rolls together 'len_par_06_pos.f90' and 'len_par_07_pos.f90', both of which
6 ! Contributed by Reinhold Bader <reinhold.bader@lrz.de>
12 type :: matrix(rk, n, m)
14 integer, len :: n = 15, m = 20
15 real(rk) :: entry(n, m)
19 integer, kind :: rk = kind(1.0)
20 integer, len :: n = 15
29 integer, parameter :: rk1=kind(1.d0)
30 type(matrix(rk1,:,:)), allocatable :: o_matrix
31 type(fdef(n=:)), allocatable :: o_fdef
33 allocate(matrix(rk=rk1)::o_matrix)
35 if (o_matrix%n == 15 .and. o_matrix%m == 20) then
36 write(*,*) 'o_matrix OK'
38 write(*,*) 'o_matrix FAIL'
42 allocate(fdef(n=12)::o_fdef)
44 if (o_fdef%n == 12) then
45 write(*,*) 'o_fdef OK'
47 write(*,*) 'o_fdef FAIL'