PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_array_22.f03
blob94107419b8427e7528bfd0d9bbaa4c7547369b27
1 ! { dg-do compile }
2 ! { dg-options "-frepack-arrays " }
4 ! Original class_array_11.f03 but with -frepack-arrays a new
5 ! ICE was produced reported in
6 ! PR fortran/69659
8 ! Original testcase by Ian Harvey <ian_harvey@bigpond.com>
9 ! Reduced by Janus Weil <Janus@gcc.gnu.org>
11   IMPLICIT NONE
13   TYPE :: ParentVector
14     INTEGER :: a
15   END TYPE ParentVector
17 CONTAINS
19   SUBROUTINE vector_operation(pvec)
20     CLASS(ParentVector), INTENT(INOUT) :: pvec(:)
21     print *,pvec(1)%a
22   END SUBROUTINE
24 END