summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/class_46.f03
blob: 4719c252f63690f161fd6712ab0c608ae0bce6f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-do run }
!
! PR 50625: [4.6/4.7 Regression][OOP] ALLOCATABLE attribute lost for module CLASS variables
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>

module m
type t
end type t
class(t), allocatable :: x
end module m

use m
implicit none
if (allocated(x)) call abort()
end 

! { dg-final { cleanup-modules "m" } }