diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/coarray/alloc_comp_2.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/coarray/alloc_comp_2.f90 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/coarray/alloc_comp_2.f90 b/gcc/testsuite/gfortran.dg/coarray/alloc_comp_2.f90 new file mode 100644 index 00000000000..13c823e7474 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/coarray/alloc_comp_2.f90 @@ -0,0 +1,19 @@ +! { dg-do compile } +! +! PR fortran/56929 +! +! Contributed by Damian Rouson +! +! Allocatable scalar corrays were mishandled (ICE) +! +module parent_coarray_component + type parent + real, allocatable :: dummy[:] + end type + type, extends(parent) :: child + end type +contains + subroutine do_something(this) + class(child) this + end +end |