Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / cond7.C
blob63d7366a8b398e0b24b49def7846473fed231968
1 // { dg-do assemble  }
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);       // { dg-error "" } incomplete type
25   a ? OVL1 : OVL2;              // { dg-error "" } incomplete type