namelist_52.f90

来自「用于进行gcc测试」· F90 代码 · 共 33 行

F90
33
字号
! { dg-do run }! PR36582 Namelist I/O error: Bogus "Cannot match namelist object"! Test case derived from PR.module mod1type screen_io_typeinteger :: beginend type screen_io_typetype adjoint_typetype(screen_io_type) :: screen_io_fs_ntimecharacter(12) :: solver_typeend type adjoint_typetype(adjoint_type) :: adjointnamelist/info_adjoint/adjointend module mod1program gfortran_error_2use mod1adjoint%solver_type = "abcdefghijkl"open(31,status='scratch')write(31, '(a)') "&info_adjoint"write(31, '(a)') "adjoint%solver_type = 'direct'"write(31, '(a)') "adjoint%screen_io_fs_ntime%begin = 42"write(31, '(a)') "/"rewind(31)read(31,nml=info_adjoint)if (adjoint%solver_type /= 'direct') call abortif (adjoint%screen_io_fs_ntime%begin /= 42) call abortend program gfortran_error_2

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?