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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_comp_30.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR 47768: ICE: printing a derived-type variable with proc-pointer components
4
!
5
! Contributed by Janus Weil 
6
 
7
type :: t
8
  integer :: i = 3
9
  procedure(type(t)), pointer, nopass :: ppc
10
end type
11
 
12
type(t) :: x
13
 
14
print *,x  ! { dg-error "cannot have procedure pointer components" }
15
end

powered by: WebSVN 2.1.0

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