From a72895355555ca8e086831251b2276ea6cd502f7 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Tue, 15 Oct 2013 08:20:01 +0200 Subject: Add missing file from previous commit r203586: 2013-10-15 Tobias Burnus PR fortran/58652 * gfortran.dg/unlimited_polymorphic_11.f90: New. From-SVN: r203587 --- gcc/testsuite/gfortran.dg/unlimited_polymorphic_11.f90 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/unlimited_polymorphic_11.f90 diff --git a/gcc/testsuite/gfortran.dg/unlimited_polymorphic_11.f90 b/gcc/testsuite/gfortran.dg/unlimited_polymorphic_11.f90 new file mode 100644 index 0000000..5b73b32 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/unlimited_polymorphic_11.f90 @@ -0,0 +1,14 @@ +! { dg-do compile } +! { dg-options "-fdump-tree-original" } +! +! PR fortran/58652 +! +! Contributed by Vladimir Fuka +! + class(*),allocatable :: a + class(*),allocatable :: c + call move_alloc(a,c) +end + +! { dg-final { scan-tree-dump "\\(struct __vtype__STAR \\*\\) c._vptr = \\(struct __vtype__STAR \\*\\) a._vptr;" "original" } } +! { dg-final { cleanup-tree-dump "original" } } -- cgit v1.1