FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / rfg4.C
blob2b883950cb720aa820391c905fc45d2f6c955aee
1 // Bug: f1 and f2 are treated as overloaded when they aren't.
2 // Build don't link:
3 // Special g++ Options: -ansi -pedantic-errors -w
5 int i;
6 void f1(double) { }
7 void f2(double) { }
9 void
10 test ()
12   i ? f1 : f2;          // gets bogus error - improper overloading