OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [function_kinds_2.f90] - Blame information for rev 424

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

Line No. Rev Author Line
1 302 jeremybenn
! Tests the fix for PR33334, in which the TYPE in the function
2
! declaration cannot be legally accessed.
3
!
4
! Contributed by Tobias Burnus 
5
!
6
module types
7
 implicit none
8
 type t
9
   integer :: i = 99
10
 end type t
11
end module
12
 
13
module x
14
 use types
15
 interface
16
   type(t) function bar() ! { dg-error "is not accessible" }
17
   end function
18
 end interface
19
end module
20
! { dg-final { cleanup-modules "types x" } }
21
 

powered by: WebSVN 2.1.0

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