summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/class_34.f90
blob: ecdb4ddc8022d62c3aaf44493bd1f1cce9345069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
! { 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

! { dg-final { cleanup-modules "m0 m1 m2" } }