aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/public_private_module_4.f90
blob: 82600e46b04657cec5406f25456b18efa3c7224d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile  { target skip-all-targets } }
!
! To be used by public_private_module_3.f90
!
! PR fortran/52916
! Cf. PR fortran/40973
!
! Ensure that PRIVATE specific functions do not get
! marked as TREE_PUBLIC() = 0, if the generic name is
! PUBLIC.
!
use m
use m2
implicit none

type(t) :: a, b, c
type(t2) :: x

call gen()
a = b + (c .myop. a)

call x%func()
end