This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Testcase for fixed PR c++/3406
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Jan 2003 09:29:47 -0500
- Subject: Testcase for fixed PR c++/3406
Applied. Note that I'm waiting for some decisions on how to do parens1.C.
:-)
* g++.dg/parse/parens2.C: New test.
Index: g++.dg/parse/parens2.C
===================================================================
RCS file: g++.dg/parse/parens2.C
diff -N g++.dg/parse/parens2.C
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ g++.dg/parse/parens2.C 1 Jan 2003 14:29:05 -0000
@@ -0,0 +1,9 @@
+/* PR c++/3406 */
+/* { dg-do compile } */
+int main()
+{
+ // The parentheses around the expression caused parse errors before 3.4.
+ ( int() > int() );
+ return 0;
+}
+