repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
private_type_4.f90
blob
a5b5578c45ae5d5a7bccbeb84abbea8d848da54f
1
! { dg-do compile }
2
! PR 25093: Check that a PUBLIC function can't be of PRIVATE type
3
module
m1
4
5
type
::
t1
6
integer
::
i
7
end type
t1
8
9
private
::
t1
10
public
::
f1
! { dg-error "cannot be of PRIVATE type" }
11
12
contains
13
14
type
(
t1
)
function
f1
()
15
end function
16
17
end module