aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/class_34.f90
blob: 3375396aa6e86ab3877b15bc49049f27b12b4392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
! { dg-do compile }
!
! PR 46448: [4.6 Regression] [OOP] symbol `__copy_...' is already defined
!
! Contributed by Janus Weil <janus@gcc.gnu.org>

module m0
  type :: t
  end type
end module 

module m1
  use m0
  class(t), pointer :: c1
end module

module m2
  use m0
  class(t), pointer :: c2
end module

end