diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/namelist_63.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/namelist_63.f90 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/namelist_63.f90 b/gcc/testsuite/gfortran.dg/namelist_63.f90 new file mode 100644 index 000000000..021017403 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/namelist_63.f90 @@ -0,0 +1,28 @@ +! { dg-do compile } +! +! PR fortran/45530 +! +! Contributed by david.sagan@gmail.com +! +program test +implicit none + +type c_struct + type (g_struct), pointer :: g +end type + +type g_struct + type (p_struct), pointer :: p +end type + +type p_struct + type (region_struct), pointer :: r +end type + +type region_struct + type (p_struct) plot +end type + +type (c_struct) curve(10) +namelist / params / curve ! { dg-error "ALLOCATABLE or POINTER components and thus requires a defined input/output" } +end program |