summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/allocate_derived_3.f90
blob: 0cd15118e2c6ad4158b3db283bf0cd619b3250fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do compile }
!
! PR 44929: [OOP] Parsing error of derived type name starting with 'REAL'
!
! Contributed by Satish.BD <bdsatish@gmail.com>

 type :: real_type
 end type
 class(real_type), allocatable :: obj
 real(8), allocatable :: r8

 allocate(real_type :: obj)

 allocate( real(kind=8) :: r8)
 allocate(real(8)  :: r8 )

end