g++.dg/parse/parens2.C: New test.

From-SVN: r60753
This commit is contained in:
Nathanael Nerode 2003-01-01 16:32:15 +00:00
parent 35bce286a1
commit 894167c5fa
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-01-01 Nathanael Nerode <neroden@gcc.gnu.org>
g++.dg/parse/parens2.C: New test.
2003-01-01 Neil Booth <neil@daikokuya.co.uk>
* g++.dg/parse/parse5.C: New test.

View File

@ -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)));
}