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_31.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: printing a derived-type variable with proc-pointer components
4
!
5
! Contributed by Arjen Markus 
6
 
7
module proc_pointers
8
  implicit none
9
  type :: rectangle
10
    real :: width, height
11
    procedure(real), pointer, nopass :: get_special_area
12
  end type
13
end module
14
 
15
program test_objects
16
  use proc_pointers
17
  implicit none
18
  type(rectangle) :: rect
19
  write(*,*) rect          ! { dg-error "cannot have procedure pointer components" }
20
end program
21
 
22
! { dg-final { cleanup-modules "proc_pointers" } }

powered by: WebSVN 2.1.0

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