OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [assumed_size_dt_dummy.f90] - Rev 154

Compare with Previous | Blame | View Log

! { dg-do compile }
! PR20853 - No array size information for initializer.
! PR24440 - patch for PR20853 caused a segfault at line 12.
! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
MODULE TEST
  TYPE init
    INTEGER :: I=0
  END TYPE init
CONTAINS
  SUBROUTINE try (A, B) ! { dg-error "cannot have a default initializer" }
    TYPE(init), DIMENSION(*), INTENT(OUT) :: A
    TYPE(init)              , INTENT(OUT) :: B ! PR24440 => segfault
  END SUBROUTINE try
END MODULE TEST

end

! { dg-final { cleanup-modules "TEST" } }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.