diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pure_initializer_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/pure_initializer_3.f90 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pure_initializer_3.f90 b/gcc/testsuite/gfortran.dg/pure_initializer_3.f90 new file mode 100644 index 000000000..91ec178f1 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pure_initializer_3.f90 @@ -0,0 +1,14 @@ +! { dg-do compile } +! +! PR fortran/42922 +! +! Contributed by mrestelli@gmail.com +! +pure subroutine psub() + implicit none + type ilist + integer :: i = 0 + end type ilist + type(ilist) :: x + x%i = 1 +end subroutine psub |