1 // Koenig lookup is not defined as intended in the std. DR 218 gives
2 // an indication of what is meant. This test case encapsulates the
3 // current conservative behaviour
5 // Copyright (C) 2006 Free Software Foundation, Inc.
6 // Contributed by Nathan Sidwell 27 Aug 2006 <nathan@codesourcery.com>
11 void One (...); // { dg-error "conflict with" "" }
12 void (*Two) (...); // { dg-error "not a function" "" }
13 namespace Three {} // { dg-error "lookup finds|not a function" "" }
19 struct One {}; // { dg-error "lookup finds|not a function" "" }
20 void (*Two) (...); // { dg-error "conflict with" "" }
21 void Three (...); // { dg-error "conflict with" "" }
27 void Two (...); // { dg-error "conflict with" "" }
30 void g (N::A *a, M::B *b, O::C *c)
33 One (b); // { dg-error "in call to" "" }
34 One (a, b); // { dg-error "in call to" "" }
40 Two (a, b); // { dg-error "in call to" "" }
41 Two (a, c); // { dg-error "in call to" "" }
43 Three (a); // { dg-error "in call to" "" }
45 Three (a, b); // { dg-error "in call to" "" }