3 ! PR libfortran/51825 - Fortran runtime error: Cannot match namelist object name
4 ! Test case derived from PR.
18 character(16) :: chars(1) = ''
20 type (mytype2
) grid(1)
25 program error_namelist
31 type (beam_init_struct
) beam_init
33 namelist / error_params
/ beam_init
35 open (10, status
='scratch')
36 write (10, '(a)') "&error_params"
37 write (10, '(a)') " beam_init%chars(1)='JUNK'"
38 write (10, '(a)') " beam_init%grid(1)%n_x=3"
39 write (10, '(a)') " beam_init%grid(1)%n_px=2"
42 read(10, nml
=error_params
)
45 if (beam_init
%chars(1) /= 'JUNK') call abort
46 if (beam_init
%grid(1)%n_x
/= 3) call abort
47 if (beam_init
%grid(1)%n_px
/= 2) call abort