blob: b65020f18779d665f6a3a8467f7590a9eaa7e42b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
!
! { dg-do run }
!
! PR fortran/43185
!
! The following is valid F2008 but not valid Fortran 90/2003
! Cf. PR 20845
!
module good
implicit none
type default_initialization
integer :: x = 42
end type default_initialization
type (default_initialization) t ! OK in F2008
end module good
use good
if (t%x /= 42) call abort()
t%x = 0
if (t%x /= 0) call abort()
end
|