From: Alexandre Oliva Date: Tue, 13 Jul 1999 02:42:39 +0000 (+0000) Subject: * expr1.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac6fed4fd48f679e25da1da4b33b5cfad8669864;p=gcc.git * expr1.C: New test. From-SVN: r28082 --- diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog index 19d6035ee57..e83c32c1a90 100644 --- a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog +++ b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog @@ -1,5 +1,7 @@ 1999-07-13 Alexandre Oliva + * expr1.C: New test. + * partspec1.C: New test. 1999-07-05 Alexandre Oliva diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/expr1.C b/gcc/testsuite/g++.old-deja/g++.oliva/expr1.C new file mode 100644 index 00000000000..068433faa84 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/expr1.C @@ -0,0 +1,12 @@ +// Build don't link: + +// Copyright (C) 1999 Free Software Foundation + +// by Alexandre Oliva +// simplified from bug report by Tudor Hulubei + +// gcc 2.95 reports: +// invalid operands `foo' and `int' to binary `operator !=' + +class foo {} bar; +int i = void(bar) ? 1 : 0; // gets bogus error - operator!= - XFAIL *-*-*