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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [class_7.f03] - Blame information for rev 318

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! Test fixes for PR41587 and PR41608.
3
!
4
! Contributed by Tobias Burnus 
5
!
6
! PR41587: used to accept the declaration of component 'foo'
7
  type t0
8
    integer :: j = 42
9
  end type t0
10
  type t
11
    integer :: i
12
    class(t0), allocatable :: foo(3)  ! { dg-error "deferred shape" }
13
  end type t
14
 
15
! PR41608: Would ICE on missing type decl
16
  class(t1), pointer :: c  ! { dg-error "before it is defined" }
17
 
18
  select type (c)          ! { dg-error "shall be polymorphic" }
19
    type is (t1)           ! { dg-error "Unexpected" }
20
  end select               ! { dg-error "Expecting END PROGRAM" }
21
end

powered by: WebSVN 2.1.0

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