From: Nathanael Nerode Date: Wed, 1 Jan 2003 16:32:15 +0000 (+0000) Subject: g++.dg/parse/parens2.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=894167c5facfaf88701b512bad8d19660f6f8321;p=gcc.git g++.dg/parse/parens2.C: New test. From-SVN: r60753 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9f7a09d65fc..99e1f0ada4f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-01-01 Nathanael Nerode + + g++.dg/parse/parens2.C: New test. + 2003-01-01 Neil Booth * g++.dg/parse/parse5.C: New test. diff --git a/gcc/testsuite/g++.dg/parse/parens2.C b/gcc/testsuite/g++.dg/parse/parens2.C new file mode 100644 index 00000000000..416af0ee048 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/parens2.C @@ -0,0 +1,11 @@ +/* PR c++/8842. */ +/* { dg-do compile } */ +int main( int argc, char* argv ) +{ + int i = 5; + // This always worked: + // double l1 = double(int(i)) / double(int(i)); + // But this used to give a parse error before the `/' token: + double l2 = (double(int(i)) / double(int(i))); +} +