Testcase for fixed PR c++/3406
Nathanael Nerode
neroden@twcny.rr.com
Wed Jan 1 14:31:00 GMT 2003
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;
+}
+
More information about the Gcc-patches
mailing list