2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / overload1.C
blobe72916355b708c097f392ad5c9b0b5f1b12fb4a6
1 // { dg-do assemble  }
2 // { dg-options "-fpermissive" }
4 // Copyright (C) 2000 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 28 Feb 2001 <nathan@codesourcery.com>
7 // Make sure we warn about our overload extension about picking the
8 // one with the least worse conversion
10 struct X
12   X (int);
14 void Foo (int, float, bool);    // { dg-warning "" } candidate
15 void Foo (float, int, X);       // { dg-warning "" } candidate
17 void Baz ()
19   Foo (1, 1, 0);    // { dg-warning "" } least worse