aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/compile/defined_type_3.f90
blob: d31167cc49723c28af5796d9bf70cc559268e656 (plain)
1
2
3
4
5
6
7
8
9
10
!This used to ICE as we chose the wrong type for the
! temporary to hold type%var
! fortran/18157
program testcase_fold
  type :: struct                            
     real      :: var       ! its julian sec  
  end type struct
  type(struct), dimension(:), pointer :: mystruct
  mystruct(1:2)%var = mystruct(2:3)%var
END Program testcase_fold