OSDN Git Service

* overload1.C: New test.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.oliva / expr1.C
1 // Build don't link:
2
3 // Copyright (C) 1999 Free Software Foundation
4
5 // by Alexandre Oliva <oliva@dcc.unicamp.br>
6 // simplified from bug report by Tudor Hulubei <tudor.hulubei@ecora.com>
7
8 // gcc 2.95 reports:
9 // invalid operands `foo' and `int' to binary `operator !='
10
11 class foo {} bar;
12 int i = void(bar) ? 1 : 0; // gets bogus error - operator!= - XFAIL *-*-*