aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/derived_constructor_comps_3.f90
blob: 9ce03beb797e3ebcde9c08602012009010760754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
! { dg-do compile }
! 
! gfortran was ICEing for the constructor of
! componentfree types.
!
! Contributed by James Van Buskirk
! http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/c8dd08d6da052499/
!
 module bug4_mod
   implicit none
   type bug4 ! no components
   end type bug4
end module bug4_mod

program bug4_structure
   use bug4_mod
   implicit none
   type(bug4) t
   t = bug4()
   write(*,*) t
end program bug4_structure