2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / rfg4.C
blobfbc3841ddd3e028b2aae556d664a0810f015e6a9
1 // { dg-do assemble  }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 // Bug: f1 and f2 are treated as overloaded when they aren't.
5 int i;
6 void f1(double) { }
7 void f2(double) { }
9 void
10 test ()
12   i ? f1 : f2;          // { dg-bogus "" } improper overloading