Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / overload / arg1.C
blobc765a9902cfcaf4fcd97c9d3348b0ecbbce1370b
1 // { dg-do compile }
3 // Copyright (C) 2004 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 30 Nov 2004 <nathan@codesourcery.com>
6 // PR 17431. copy ctor from user conv
7 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
9 struct A {};
11 struct B : A
13   B(int);
14   B(B &);
15   B(A);
18 void foo(B);
20 void bar()
22   foo(0);