1! { dg-do compile }
2!
3! PR 46448: [4.6 Regression] [OOP] symbol `__copy_...' is already defined
4!
5! Contributed by Janus Weil <janus@gcc.gnu.org>
6
7module m0
8  type :: t
9  end type
10end module
11
12module m1
13  use m0
14  class(t), pointer :: c1
15end module
16
17module m2
18  use m0
19  class(t), pointer :: c2
20end module
21
22end
23