cp:
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / cond7.C
blob49fa73ca1f8d6e02a53c7b563342202f5253152c
1 // Build don't link:
2 // 
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Jul 2001 <nathan@codesourcery.com>
6 // Bug 3416. We left some unchecked overloaded functions lying around.
8 struct X
10   void operator << (int);
11   void operator << (float);
14 void OVL1 (int);
15 void OVL1 (float);
17 void OVL2 (int);
18 void OVL2 (float);
20 X x;
22 void foo (bool a)
24   x << (a ? OVL1 : OVL2);       // ERROR - incomplete type
25   a ? OVL1 : OVL2;              // ERROR - incomplete type