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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-std=f95" }
3
! PR 25093: Check that a PUBLIC function can't be of PRIVATE type
4
! in Fortran 95; in Fortran 2003 it is allowed (cf. PR fortran/38065)
5
!
6
module m1
7
 
8
    type :: t1
9
        integer :: i
10
    end type t1
11
 
12
    private :: t1
13
    public :: f1
14
 
15
contains
16
 
17
    type(t1) function f1() ! { dg-error "of PRIVATE derived type" }
18
    end function
19
 
20
end module
21
 
22
! { dg-final { cleanup-modules "m1" } }

powered by: WebSVN 2.1.0

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