g++.dg/parse/parens2.C: New test.
From-SVN: r60753
This commit is contained in:
parent
35bce286a1
commit
894167c5fa
@ -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>
|
2003-01-01 Neil Booth <neil@daikokuya.co.uk>
|
||||||
|
|
||||||
* g++.dg/parse/parse5.C: New test.
|
* g++.dg/parse/parse5.C: New test.
|
||||||
|
11
gcc/testsuite/g++.dg/parse/parens2.C
Normal file
11
gcc/testsuite/g++.dg/parse/parens2.C
Normal 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)));
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user