2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload3.C
blob3cca3147eecfbf20b45a7dd3cc45088ead229dc6
1 // { dg-do assemble  }
2 // Bug: bar is considered to be overloaded (i.e. its
3 //   IDENTIFIER_GLOBAL_VALUES are TREE_LISTs) even though it isn't,
4 //   so default_conversion thinks it can't resolve the name.
6 void foo ();
7 void bar ();
9 void baz ()
11   void (*p)() = 1 ? (void (*)()) &foo : bar;