* expr1.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 13 Jul 1999 02:42:39 +0000 (02:42 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Tue, 13 Jul 1999 02:42:39 +0000 (02:42 +0000)
From-SVN: r28082

gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog
gcc/testsuite/g++.old-deja/g++.oliva/expr1.C [new file with mode: 0644]

index 19d6035ee572d07128f7551ada326da405a647dc..e83c32c1a908c27472924aaa21bfbc7f1cbca609 100644 (file)
@@ -1,5 +1,7 @@
 1999-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * expr1.C: New test.
+
        * partspec1.C: New test.
 
 1999-07-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
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 (file)
index 0000000..068433f
--- /dev/null
@@ -0,0 +1,12 @@
+// Build don't link:
+
+// Copyright (C) 1999 Free Software Foundation
+
+// by Alexandre Oliva <oliva@dcc.unicamp.br>
+// simplified from bug report by Tudor Hulubei <tudor.hulubei@ecora.com>
+
+// 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 *-*-*