| 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 <[email protected]> |
| 6 |
|
| 7 |
// Make sure we warn about our overload extension about picking the |
| 8 |
// one with the least worse conversion |
| 9 |
|
| 10 |
struct X |
| 11 |
{ |
| 12 |
X (int); |
| 13 |
}; |
| 14 |
void Foo (int, float, bool); // { dg-message "candidate" } |
| 15 |
void Foo (float, int, X); // { dg-message "candidate" } |
| 16 |
|
| 17 |
void Baz () |
| 18 |
{ |
| 19 |
Foo (1, 1, 0); // { dg-warning "worst" } |
| 20 |
} |