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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [class_7.f03] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do compile }
! Test fixes for PR41587 and PR41608.
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
!
! PR41587: used to accept the declaration of component 'foo'
  type t0
    integer :: j = 42
  end type t0
  type t
    integer :: i
! FIXME: uncomment and dejagnuify once class arrays are enabled
!    class(t0), allocatable :: foo(3)  ! { "deferred shape" }
  end type t

! PR41608: Would ICE on missing type decl
  class(t1), pointer :: c  ! { dg-error "before it is defined" }

  select type (c)          ! { dg-error "shall be polymorphic" }
    type is (t0)
  end select
end

Go to most recent revision | 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.