mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
17 lines
322 B
Fortran
17 lines
322 B
Fortran
! { dg-do compile }
|
|
! { dg-options "-fcheck=mem" }
|
|
!
|
|
! Compile time check only, to test that the ICE is fixed in the assignment of the
|
|
! default initializer of the class to sf.
|
|
|
|
implicit none
|
|
|
|
type :: t
|
|
integer, pointer :: data => null ()
|
|
end type
|
|
|
|
class(t), dimension(:), allocatable :: sf
|
|
allocate (t :: sf (1))
|
|
end
|
|
|