diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/allocate_derived_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/allocate_derived_3.f90 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/allocate_derived_3.f90 b/gcc/testsuite/gfortran.dg/allocate_derived_3.f90 new file mode 100644 index 000000000..0cd15118e --- /dev/null +++ b/gcc/testsuite/gfortran.dg/allocate_derived_3.f90 @@ -0,0 +1,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 |