1// { dg-do assemble } 2// { dg-options "-fpermissive" } 3 4// Copyright (C) 2000 Free Software Foundation, Inc. 5// Contributed by Nathan Sidwell 28 Feb 2001 <nathan@codesourcery.com> 6 7// Make sure we warn about our overload extension about picking the 8// one with the least worse conversion 9 10struct X 11{ 12 X (int); 13}; 14void Foo (int, float, bool); // { dg-message "candidate" } 15void Foo (float, int, X); // { dg-message "candidate" } 16 17void Baz () 18{ 19 Foo (1, 1, 0); // { dg-warning "worst" } 20} 21