OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / overload2.C
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.
5
6 void foo ();
7 void bar ();
8
9 void baz ()
10 {
11   void (*p)() = 1 ? foo : bar;  // { dg-bogus "" } wrongful overloading
12 }