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