gcc/testsuite/g++.old-deja/g++.oliva/expr1.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 1999 Free Software Foundation |
| 4 | |
| 5 | // by Alexandre Oliva <[email protected]> |
| 6 | // simplified from bug report by Tudor Hulubei <[email protected]> |
| 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; // { dg-bogus "" "" { xfail *-*-* } } - operator!= - |