Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / overload / arg1.C
blob6ac6a7e5c298ab85e730bdd2761dd026c42c99b2
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); // { dg-error "" "" }
14   B(B &); // { dg-error "" "" }
15   B(A); // { dg-error "" "" }
18 void foo(B);
20 void bar()
22   foo(0); // { dg-error "no matching function|initializing" "" }