2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload2.C
blob631f953cfe24ec983768008af44681f76da70e38
1 // { dg-do assemble  }
2 // Bug: foo and bar are considered to be overloaded (i.e. their
3 //   IDENTIFIER_GLOBAL_VALUES are TREE_LISTs) even though they aren't,
4 //   so ?: thinks it can't resolve the names.
6 void foo ();
7 void bar ();
9 void baz ()
11   void (*p)() = 1 ? foo : bar;  // { dg-bogus "" } wrongful overloading