OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [namelist_52.f90] - Diff between revs 302 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 302 Rev 384
! { dg-do run }
! { dg-do run }
! PR36582 Namelist I/O error: Bogus "Cannot match namelist object"
! PR36582 Namelist I/O error: Bogus "Cannot match namelist object"
! Test case derived from PR.
! Test case derived from PR.
module mod1
module mod1
type screen_io_type
type screen_io_type
integer :: begin
integer :: begin
end type screen_io_type
end type screen_io_type
type adjoint_type
type adjoint_type
type(screen_io_type) :: screen_io_fs_ntime
type(screen_io_type) :: screen_io_fs_ntime
character(12) :: solver_type
character(12) :: solver_type
end type adjoint_type
end type adjoint_type
type(adjoint_type) :: adjoint
type(adjoint_type) :: adjoint
namelist/info_adjoint/adjoint
namelist/info_adjoint/adjoint
end module mod1
end module mod1
program gfortran_error_2
program gfortran_error_2
use mod1
use mod1
adjoint%solver_type = "abcdefghijkl"
adjoint%solver_type = "abcdefghijkl"
open(31,status='scratch')
open(31,status='scratch')
write(31, '(a)') "&info_adjoint"
write(31, '(a)') "&info_adjoint"
write(31, '(a)') "adjoint%solver_type = 'direct'"
write(31, '(a)') "adjoint%solver_type = 'direct'"
write(31, '(a)') "adjoint%screen_io_fs_ntime%begin = 42"
write(31, '(a)') "adjoint%screen_io_fs_ntime%begin = 42"
write(31, '(a)') "/"
write(31, '(a)') "/"
rewind(31)
rewind(31)
read(31,nml=info_adjoint)
read(31,nml=info_adjoint)
if (adjoint%solver_type /= 'direct') call abort
if (adjoint%solver_type /= 'direct') call abort
if (adjoint%screen_io_fs_ntime%begin /= 42) call abort
if (adjoint%screen_io_fs_ntime%begin /= 42) call abort
end program gfortran_error_2
end program gfortran_error_2
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.